Upgrade to Babel 6.x

This commit is contained in:
2017-01-09 15:53:02 -07:00
parent 86f23ed1a4
commit 1dbc088d17
6 changed files with 35 additions and 17 deletions
+6 -6
View File
@@ -13,22 +13,22 @@ module.exports = {
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
loaders: ['babel-loader'],
include: path.join(__dirname, 'src')
}]
}