其他分享
首页 > 其他分享> > uglify丑化

uglify丑化

作者:互联网

1.安装插件

npm install uglifyjs-webpack-plugin@1.1.1 --save-dev

2.配置

webpack.config.js中导入

const UglifyWebpackPlugin = require('uglifyjs-webpack-plugin')

plugin中新增

 new UglifyWebpackPlugin()

3.运行

npm run build

 

标签:npm,插件,uglify,plugin,丑化,UglifyWebpackPlugin,webpack,uglifyjs
来源: https://www.cnblogs.com/ajaXJson/p/14912890.html