aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-04-28 09:15:50 +0800
committerkumavis <aaron@kumavis.me>2018-04-28 09:15:50 +0800
commit5c9cb0b7872d842bc5465894e1b2844ee352556c (patch)
treef542f024ae1a2da0467ea7f543b9f9e41e813049
parent4e7b0ff15c5a57cd58497aa292c884a97e8a5d23 (diff)
downloadtangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar.gz
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar.bz2
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar.lz
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar.xz
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.tar.zst
tangerine-wallet-browser-5c9cb0b7872d842bc5465894e1b2844ee352556c.zip
build - minify via gulp-uglify-es instead of uglifyify
-rw-r--r--gulpfile.js20
-rw-r--r--package.json1
2 files changed, 10 insertions, 11 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 4f0da9d60..e844a4cba 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -484,16 +484,6 @@ function generateBundler(opts, performBundle) {
NODE_ENV: opts.devMode ? 'development' : 'production',
}))
- // Minification
- if (opts.minifyBuild) {
- bundler.transform('uglifyify', {
- global: true,
- mangle: {
- reserved: [ 'MetamaskInpageProvider' ]
- },
- })
- }
-
if (opts.watch) {
bundler = watchify(bundler)
// on any file update, re-runs the bundler
@@ -567,6 +557,16 @@ function bundleTask(opts) {
.pipe(sourcemaps.init({ loadMaps: true }))
}
+ // Minification
+ if (opts.minifyBuild) {
+ buildStream = buildStream
+ .pipe(uglify({
+ mangle: {
+ reserved: [ 'MetamaskInpageProvider' ]
+ },
+ }))
+ }
+
// Finalize Source Maps (writes .map file)
if (opts.buildSourceMaps) {
buildStream = buildStream
diff --git a/package.json b/package.json
index 73892bc28..953d8d7ac 100644
--- a/package.json
+++ b/package.json
@@ -272,7 +272,6 @@
"stylelint-config-standard": "^18.2.0",
"tape": "^4.5.1",
"testem": "^2.0.0",
- "uglifyify": "github:MetaMask/uglifyify#keep-flags",
"vinyl-buffer": "^1.0.1",
"vinyl-source-stream": "^2.0.0",
"watchify": "^3.9.0"