aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-09-12 20:43:44 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-09-12 20:43:44 +0200
commit2e92c10b6cdb32e5170aab0b4c0ff3e4c27e30d5 (patch)
tree104ff4077318ebd489f2ef30a332835d1deb13c4 /client/config/webpack.prod.js
parent772b47e36a1e63eedeaafe6cd7b1771dfb441ba7 (diff)
downloadPeerTube-2e92c10b6cdb32e5170aab0b4c0ff3e4c27e30d5.tar.gz
PeerTube-2e92c10b6cdb32e5170aab0b4c0ff3e4c27e30d5.tar.zst
PeerTube-2e92c10b6cdb32e5170aab0b4c0ff3e4c27e30d5.zip
Client: update a webpack configs
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