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')]
}
