Vue-cli 打包报错: ERROR in static/js/4.784ab4a1238de8e94312.js from UglifyJs Unexpected token: 原因:Uglify模块不能压缩es6的代码 解决:修改webpack.base.conf.js 转换出错文件 { test: /\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'),resolve('node_modules/browser-md5-file/dist')] }