UNPKG

@icanvas/webpack

Version:

这是icanvas的默认webpack打包配置

21 lines (20 loc) 397 B
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); module.exports = (ENV, Config) => { if (ENV.zip || Config.zip) { return { plugins: [ new UglifyJSPlugin({ sourceMap: false, uglifyOptions: { output: { comments: false }, compress: { drop_debugger: true, drop_console: true, pure_getters: true, }, }, }), ], }; } };