From ea214945cf88cef457147bd33a3017c8ea97956a Mon Sep 17 00:00:00 2001 From: William Chong Date: Fri, 19 Oct 2018 00:50:56 +0800 Subject: Set `NODE_ENV` when generating bundler (#4983) --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 5a468d2f3..0a0e3b3d5 100644 --- a/gulpfile.js +++ b/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) -- cgit