diff options
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r-- | client/config/webpack.prod.js | 12 |
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') | |||
23 | const ENV = process.env.NODE_ENV = process.env.ENV = 'production' | 23 | const ENV = process.env.NODE_ENV = process.env.ENV = 'production' |
24 | const HOST = process.env.HOST || 'localhost' | 24 | const HOST = process.env.HOST || 'localhost' |
25 | const PORT = process.env.PORT || 8080 | 25 | const PORT = process.env.PORT || 8080 |
26 | const METADATA = webpackMerge(commonConfig.metadata, { | 26 | const 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 | ||