webpack.config.js配置
安装 uglifyjs-webpack-plugin
cnpm install uglifyjs-webpack-plugin
在开发环境不能使用npm run server
const uglify = require('uglifyjs-webpack-plugin');
...
plugins: [
new uglify()
],
...
安装 uglifyjs-webpack-plugin
cnpm install uglifyjs-webpack-plugin
在开发环境不能使用npm run server
const uglify = require('uglifyjs-webpack-plugin');
...
plugins: [
new uglify()
],
...
本文标题:4.配置js压缩
本文链接:https://www.haomeiwen.com/subject/qmgrrctx.html
网友评论