webpack丑化插件

plugin
cnpm install uglifyjs-webpack-plugin --save-dev

webpack.config.js

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

plugins: [
  new UglifyJsPlugin(),
]
posted @ 2021-07-07 17:48  thomas_blog  阅读(169)  评论(0编辑  收藏  举报