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.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