summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-04-21 21:20:06 -0400
committerJules Laplace <jules@okfoc.us>2017-04-21 21:20:06 -0400
commitf8f2e8cd43a56a9c0cefd9fdc0da9535e301024f (patch)
treebd9ac83b7c37d01c258711eab8581a7f48dfc9ff /webpack.config.js
parent039061df0119bfbfb829ff719c9bfdef1eed68bd (diff)
minify for production
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js11
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
+// ],
}