You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
Unexpected token name «currentVersion», expected punc
遇到这种异常, 需要运行下面脚本
运行npm i -D uglifyjs-webpack-plugin@beta
修改webpack.prod.conf.js
将原来的
new webpack.optimize.UglifyJsPlugin ({
compress: {
warnings: false
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
改成
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
new UglifyJsPlugin(),
问题解决!
The text was updated successfully, but these errors were encountered:
HenryTSZ
changed the title
ERROR in static/js/xxx.js from UglifyJs Unexpected token name «currentVersion»_我老婆小阿婷的博客-CSDN博客
ERROR in static/js/xxx.js from UglifyJs Unexpected token name «currentVersion»
Aug 3, 2023
https://blog.csdn.net/Java_user_user/article/details/125616471
我老婆小阿婷
已于 2022-07-13 11:42:42 修改
1295
收藏 3
于 2022-07-05 11:35:07 首次发布
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
Unexpected token name «currentVersion», expected punc
问题解决!
The text was updated successfully, but these errors were encountered: