1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Set NODE_ENV when generating bundler (#4983)

This commit is contained in:
William Chong 2018-10-19 00:50:56 +08:00 committed by Whymarrh Whitby
parent 3f4c389fde
commit ea214945cf

View File

@ -462,7 +462,9 @@ function generateBundler (opts, performBundle) {
bundler.transform(envify({
METAMASK_DEBUG: opts.devMode,
NODE_ENV: opts.devMode ? 'development' : 'production',
}))
}), {
global: true,
})
if (opts.watch) {
bundler = watchify(bundler)