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.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index 4e7d96a4b..2db41d398 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -23,7 +23,7 @@ const WebpackMd5Hash = require('webpack-md5-hash')
23const ENV = process.env.NODE_ENV = process.env.ENV = 'production' 23const ENV = process.env.NODE_ENV = process.env.ENV = 'production'
24const HOST = process.env.HOST || 'localhost' 24const HOST = process.env.HOST || 'localhost'
25const PORT = process.env.PORT || 8080 25const PORT = process.env.PORT || 8080
26const METADATA = webpackMerge(commonConfig.metadata, { 26const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, {
27 host: HOST, 27 host: HOST,
28 port: PORT, 28 port: PORT,
29 ENV: ENV, 29 ENV: ENV,
@@ -166,7 +166,7 @@ module.exports = webpackMerge(commonConfig, {
166 new NormalModuleReplacementPlugin( 166 new NormalModuleReplacementPlugin(
167 /angular2-hmr/, 167 /angular2-hmr/,
168 helpers.root('config/modules/angular2-hmr-prod.js') 168 helpers.root('config/modules/angular2-hmr-prod.js')
169 ), 169 )
170 170
171 /** 171 /**
172 * Plugin: CompressionPlugin 172 * Plugin: CompressionPlugin
@@ -175,10 +175,10 @@ module.exports = webpackMerge(commonConfig, {
175 * 175 *
176 * See: https://github.com/webpack/compression-webpack-plugin 176 * See: https://github.com/webpack/compression-webpack-plugin
177 */ 177 */
178 new CompressionPlugin({ 178 // new CompressionPlugin({
179 regExp: /\.css$|\.html$|\.js$|\.map$/, 179 // regExp: /\.css$|\.html$|\.js$|\.map$/,
180 threshold: 2 * 1024 180 // threshold: 2 * 1024
181 }) 181 // })
182 182
183 ], 183 ],
184 184