Authored by yyq

babel

... ... @@ -62,6 +62,10 @@
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"bootstrap": "^3.3.7",
"css-loader": "^0.27.3",
"cssnano": "^3.10.0",
... ...
... ... @@ -117,6 +117,12 @@ module.exports = (env) => {
}
}]
}, {
test: /\.js$/,
exclude: [/node_modules/],
use: [{
loader: 'happypack/loader?id=js'
}]
}, {
test: /\.css$/,
use: cssLoader(env, 'css')
}, {
... ... @@ -145,6 +151,11 @@ module.exports = (env) => {
},
plugins: [
new HappyPack({
id: 'js',
threadPool: happyThreadPool,
loaders: ['babel-loader'],
}),
new HappyPack({
id: 'hbs',
threadPool: happyThreadPool,
loaders: [hbsLoader]
... ...