aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.prod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 17:49:13 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 17:49:13 +0200
commit174d46578bb719c85686f9bb89abf4330ae4cac1 (patch)
tree34d7b791dfcd603cc7c2117780c071b74b3cf646 /client/config/webpack.prod.js
parent127944aacb52721877449a1f202dc0add866ef39 (diff)
downloadPeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.tar.gz
PeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.tar.zst
PeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.zip
Fix prod build
Diffstat (limited to 'client/config/webpack.prod.js')
-rw-r--r--client/config/webpack.prod.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.js
index c27a4f4b0..1484e2ac2 100644
--- a/client/config/webpack.prod.js
+++ b/client/config/webpack.prod.js
@@ -123,13 +123,14 @@ module.exports = function (env) {
123 'ENV': JSON.stringify(METADATA.ENV), 123 'ENV': JSON.stringify(METADATA.ENV),
124 'HMR': METADATA.HMR, 124 'HMR': METADATA.HMR,
125 'API_URL': JSON.stringify(METADATA.API_URL), 125 'API_URL': JSON.stringify(METADATA.API_URL),
126 'process.version': JSON.stringify(process.version),
126 'process.env': { 127 'process.env': {
127 'ENV': JSON.stringify(METADATA.ENV), 128 'ENV': JSON.stringify(METADATA.ENV),
128 'NODE_ENV': JSON.stringify(METADATA.ENV), 129 'NODE_ENV': JSON.stringify(METADATA.ENV),
129 'HMR': METADATA.HMR 130 'HMR': METADATA.HMR
130 } 131 }
131 }), 132 }),
132/** 133 /**
133 * Plugin: UglifyJsPlugin 134 * Plugin: UglifyJsPlugin
134 * Description: Minimize all JavaScript output of chunks. 135 * Description: Minimize all JavaScript output of chunks.
135 * Loaders are switched into minimizing mode. 136 * Loaders are switched into minimizing mode.
@@ -269,7 +270,7 @@ module.exports = function (env) {
269 global: true, 270 global: true,
270 crypto: 'empty', 271 crypto: 'empty',
271 fs: 'empty', 272 fs: 'empty',
272 process: false, 273 process: true,
273 module: false, 274 module: false,
274 clearImmediate: false, 275 clearImmediate: false,
275 setImmediate: false 276 setImmediate: false