diff options
author | William Chong <williamchong007@msn.com> | 2018-10-19 00:50:56 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-19 00:50:56 +0800 |
commit | ea214945cf88cef457147bd33a3017c8ea97956a (patch) | |
tree | 95723c8b03fb7188c1d3ed6d1e56bea27f4fec22 /gulpfile.js | |
parent | 3f4c389fdefcd2504bbb05225ab37969b3a7b1a5 (diff) | |
download | tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar.gz tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar.bz2 tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar.lz tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar.xz tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.tar.zst tangerine-wallet-browser-ea214945cf88cef457147bd33a3017c8ea97956a.zip |
Set `NODE_ENV` when generating bundler (#4983)
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 4 |
1 files changed, 3 insertions, 1 deletions
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) |