tinypng-compress
a images compress plugin use with tinyPNG for webpack.
get tinyPNG key
Installation
$ npm install tinypng-compress --save-dev
Example Webpack Config
var tinypngCompress = ; //in your webpack plugins array moduleexports = plugins:
编译提示
默认在process.env.NODE_ENV = production
开启此功能,编译所有webpack assets的图片资源(gif、jpg、jpeg、png)。