添加链接描述
ERROR in static/js/xxx.js from UglifyJs
Unexpected token name «currentVersion», expected punc
遇到这种异常, 需要运行下面脚本运行npm i -D uglifyjs-webpack-plugin@beta修改webpack.prod.conf.jsjs中引入参数const UglifyJsPlugin = require('uglifyjs-webpack-plugin')再将原来的new webpack.optimize.UglifyJsPlugin ({compress: {warnings: false},sourceMap: config.build.productionSourceMap,parallel: true}), 改成new UglifyJsPlugin(),