Set `NODE_ENV` when generating bundler (#4983)

feature/default_network_editable
William Chong 6 years ago committed by Whymarrh Whitby
parent 3f4c389fde
commit ea214945cf
  1. 4
      gulpfile.js

@ -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)

Loading…
Cancel
Save