aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2018-01-13 05:41:03 +0800
committerGitHub <noreply@github.com>2018-01-13 05:41:03 +0800
commit71a308d98b541b05ffabf8f63085e3cbd8bf61b7 (patch)
tree5f360e4a65a0768817913e99840e3705439432e2 /gulpfile.js
parent0f4bfcb02e3a04f044a571e01a4977dae2afec8e (diff)
parentbdcee058dc278c46c828f376476f121417481385 (diff)
downloadtangerine-wallet-browser-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.tar.gz
tangerine-wallet-browser-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.tar.zst
tangerine-wallet-browser-71a308d98b541b05ffabf8f63085e3cbd8bf61b7.zip
Merge branch 'uat' into cb-388
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 195e3f3ca..f61e15b69 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -23,6 +23,8 @@ var sass = require('gulp-sass')
var autoprefixer = require('gulp-autoprefixer')
var gulpStylelint = require('gulp-stylelint')
var stylefmt = require('gulp-stylefmt')
+var uglify = require('gulp-uglify')
+var babel = require('gulp-babel')
var disableDebugTools = gutil.env.disableDebugTools
@@ -375,6 +377,11 @@ function bundleTask(opts) {
// sourcemaps
// loads map from browserify file
.pipe(gulpif(debug, sourcemaps.init({ loadMaps: true })))
+ // Minification
+ .pipe(babel({
+ presets: ['env']
+ }))
+ .pipe(uglify())
// writes .map file
.pipe(gulpif(debug, sourcemaps.write('./')))
// write completed bundles