webpack打包压缩 ES6 js、.vue报错:
ERROR in js/test.js from UglifyJs
Unexpected token punc «(», expected punc «:» [js/test.js:1374,5]
解决方案:
配置babel,把配置放到文件【.babelrc】中
{ "presets": ["es2015"] }
转载于:https://www.cnblogs.com/xueshanshan/p/6610940.html