aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/production.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/production.js')
-rw-r--r--config/webpack/production.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js
new file mode 100644
index 000000000..7703f8452
--- /dev/null
+++ b/config/webpack/production.js
@@ -0,0 +1,14 @@
+const environment = require('./environment')
+const webpack = require('webpack')
+const UglifyJsPlugin = require('uglify-js')
+
+environment.plugins.set(
+ 'UglifyJs',
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ }
+ })
+)
+
+module.exports = environment.toWebpackConfig()