cache-uglifyjs-webpack-plugin
v1.1.2
Published
cache uglifyjs webpack plugin
Downloads
2
Readme
cache-uglifyjs-webpack-plugin
安装
npm install cache-uglifyjs-webpack-plugin
配置
var CacheUglifyjsWebpackPlugin = require('cache-uglifyjs-webpack-plugin');
//cacheDirectory 为缓存目录 其他设置参考ugfily-js
var cacheJsPlugin = new CacheUglifyjsWebpackPlugin({
cacheDirectory: '../temp',//缓存目录
compress: {
warnings: false
}
});
module.exports = {
...
plugins: [
cacheJsPlugin
]
};