summaryrefslogtreecommitdiffstats
path: root/webapp/webpack.config.js
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-21 20:56:36 -0500
committerenahum <nahumhbl@gmail.com>2016-11-21 22:56:36 -0300
commit9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65 (patch)
tree04c395916dd9c51cf2518210d8a4cd9ad6511dee /webapp/webpack.config.js
parentbc0c52fb779fe543b9224ae3bc6c4f6b91a4a49e (diff)
downloadchat-9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65.tar.gz
chat-9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65.tar.bz2
chat-9b7e2e50e3fd0a8b81a3cddc0f7240b894778c65.zip
Fxing source maps for production (#4621)
Diffstat (limited to 'webapp/webpack.config.js')
-rw-r--r--webapp/webpack.config.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/webapp/webpack.config.js b/webapp/webpack.config.js
index 71e35a6d8..f1742e3ae 100644
--- a/webapp/webpack.config.js
+++ b/webapp/webpack.config.js
@@ -99,11 +99,6 @@ var config = {
}
}
}),
- new webpack.DefinePlugin({
- 'process.env': {
- NODE_ENV: JSON.stringify('production')
- }
- }),
new webpack.optimize.CommonsChunkPlugin({
minChunks: 2,
children: true
@@ -143,12 +138,20 @@ if (!DEV) {
compress: {
warnings: false
},
- comments: false
+ comments: false,
+ sourceMap: true
})
);
config.plugins.push(
new webpack.optimize.OccurrenceOrderPlugin(true)
);
+ config.plugins.push(
+ new webpack.DefinePlugin({
+ 'process.env': {
+ NODE_ENV: JSON.stringify('production')
+ }
+ })
+ );
}
// Test mode configuration