![]() The code is written in ES6 using Javascript Standard Style.Many thanks to tinypng-webpack-plugin, tinypng-loader and imagemin-webpack-plugin.And please understand that I need to keep it simple, so not all feature would be proved. If the feature make sense, I would add it. And it is quite slow.īecause it is lack of silence option and it cannot proceed images not in webpack assets as well. I was suprised that there weren't any Tinypng plugins for webpack which fit my request, so I made one!īecause the images need to preceed is not in webpack assets. So it is recommended that we set it to somewhere git included. If we set it to node_modules, team members would compress images again and again. Working with copy-webpack-plugin: module.exports = /node_modules/tinypng-plugin-webpack-full-featured/dict Npm install tinypng-plugin-webpack-full-featured Example Usage const TinypngPlugin = require( 'tinypng-plugin-webpack-full-featured') įrom: path.resolve(_dirname, './static/images'), This is a simple plugin that uses Tinypng to compress images in your project.
0 Comments
Leave a Reply. |