aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r--client/config/webpack.prod.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index 777c816e8..ecd7914c7 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -17,6 +17,8 @@ const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplaceme
17const OptimizeJsPlugin = require('optimize-js-plugin') 17const OptimizeJsPlugin = require('optimize-js-plugin')
18const HashedModuleIdsPlugin = require('webpack/lib/HashedModuleIdsPlugin') 18const HashedModuleIdsPlugin = require('webpack/lib/HashedModuleIdsPlugin')
19const UglifyJsPlugin = require('uglifyjs-webpack-plugin') 19const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
20const ExtractTextPlugin = require('extract-text-webpack-plugin')
21
20/** 22/**
21 * Webpack Constants 23 * Webpack Constants
22 */ 24 */
@@ -120,15 +122,10 @@ module.exports = function (env) {
120 sourceMap: false 122 sourceMap: false
121 }), 123 }),
122 124
123 /** 125 new ExtractTextPlugin({
124 * Plugin: DedupePlugin 126 filename: '[name].[contenthash].css',
125 * Description: Prevents the inclusion of duplicate code into your bundle 127 allChunks: true
126 * and instead applies a copy of the function at runtime. 128 }),
127 *
128 * See: https://webpack.github.io/docs/list-of-plugins.html#defineplugin
129 * See: https://github.com/webpack/docs/wiki/optimization#deduplication
130 */
131 // new DedupePlugin(),
132 129
133 /** 130 /**
134 * Plugin: DefinePlugin 131 * Plugin: DefinePlugin
@@ -158,7 +155,6 @@ module.exports = function (env) {
158 * 155 *
159 * See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin 156 * See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
160 */ 157 */
161 // NOTE: To debug prod builds uncomment //debug lines and comment //prod lines
162 new UglifyJsPlugin({ 158 new UglifyJsPlugin({
163 parallel: true, 159 parallel: true,
164 uglifyOptions: { 160 uglifyOptions: {