基于vue-cli 2 版本
//在webpack.base.conf.js 中添加即可
plugins: [
new HappyPack({
id: 'happy-babel-js',
loaders: ['babel-loader?cacheDirectory=true'],
threadPool: happyThreadPool,
})</
基于vue-cli 2 版本
//在webpack.base.conf.js 中添加即可
plugins: [
new HappyPack({
id: 'happy-babel-js',
loaders: ['babel-loader?cacheDirectory=true'],
threadPool: happyThreadPool,
})</