Merged webpack files to unified

This commit is contained in:
Wyatt Johnson
2016-11-08 15:00:19 -07:00
parent 5270aefe6a
commit 8369f263fb
18 changed files with 126 additions and 370 deletions
+22
View File
@@ -0,0 +1,22 @@
const webpack = require('webpack');
const devConfig = require('./webpack.config.dev');
// Disable source maps.
devConfig.devtool = null;
devConfig.plugins = devConfig.plugins.concat([
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.optimize.DedupePlugin()
]);
module.exports = devConfig;