diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-21 21:20:06 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-21 21:20:06 -0400 |
| commit | f8f2e8cd43a56a9c0cefd9fdc0da9535e301024f (patch) | |
| tree | bd9ac83b7c37d01c258711eab8581a7f48dfc9ff /webpack.config.js | |
| parent | 039061df0119bfbfb829ff719c9bfdef1eed68bd (diff) | |
minify for production
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index 8049884..6f4aa70 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,5 @@ +var webpack = require('webpack'); + module.exports = { entry: './client/index.jsx', watch: true, @@ -19,4 +21,13 @@ module.exports = { } ] }, +// plugins: [ +// new webpack.DefinePlugin({ // <-- key to reducing React's size +// 'process.env': { +// 'NODE_ENV': JSON.stringify('production') +// } +// }), +// new webpack.optimize.UglifyJsPlugin(), // minify everything +// new webpack.optimize.AggressiveMergingPlugin() // merge chunks +// ], } |
