标签:highlight csharp blank web tar .com ack webp https
辛辛苦苦写好了前端代码,准备发布的时候,编译报错:
..... from UglifyJs
Unexpected token: keyword (const).....
咋回事呀?
问Google,Google说,因为你的代码里面包含了ES6的语法,你的uglifyjs不支持的呀。
用terser-webpack-plugin替换掉uglifyjs-webpack-plugin
传送门: https://github.com/webpack-contrib/terser-webpack-plugin
用terser-webpack-plugin替换掉uglifyjs-webpack-plugin解决uglifyjs不支持es6语法问题
标签:highlight csharp blank web tar .com ack webp https
原文地址:https://www.cnblogs.com/saving/p/10577211.html