summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
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
+// ],
}