如何打包压缩JS和CSS的问题
/
猿问
在plugins 里添加 //混合压缩js new webpack.optimize.UglifyJsPlugin({ compressor: { warnings: false } }), //css压缩 需要安装 optimize-css-assets-webpack-plugin new OptimizeCssAssetsPlugin({ cssProcessorOptions: { discardComments: {removeAll: true } }, canPrint: false })
哦,是我看错了。可惜删除不了回复了。
举报