Skip to content

Commit

Permalink
moved build production into config
Browse files Browse the repository at this point in the history
  • Loading branch information
otissv committed May 8, 2016
1 parent f581dbb commit da7fc15
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions webpack.config-build.js
Expand Up @@ -18,12 +18,24 @@ module.exports = {

plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
}),
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: { warnings: false },
comments: false,
sourceMap: false,
mangle: true,
minimize: true
}),
new webpack.ProvidePlugin({
React : 'react',
ReactDOM: 'react-dom'
})
}),
new webpack.optimize.AggressiveMergingPlugin()
],

module: {
Expand Down

0 comments on commit da7fc15

Please sign in to comment.