vue project build solutions of error (ERROR in static / js / vendor.xxxxx.js from UglifyJs)

1, reference: https://blog.csdn.net/sing_sing/article/details/79146265

In UglifyJs's github issues # 78 to find such a solution: As UglifyJs only support ES5 and element-ui may introduce the wording of part of the ES6, resulting in webpack package failed. Finally, the issue in the solution is to use a beta version of Uglify-es instead UglifyJs (Beta version introduces support for ES2015 +) support. You need to use the command in the front end of the working directory  npm i -D uglifyjs-webpack-plugin@beta.

Guess you like

Origin www.cnblogs.com/huen2015/p/10986580.html