diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-01-12 10:15:22 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-01-12 10:15:22 +0800 |
commit | 41057a76c567a80f98ff17e5d7a24c9500c11e4c (patch) | |
tree | 80959719993b4033c8502e76efac81c9b0628b47 /gulpfile.js | |
parent | b8310ac62e358af9a6a9f3ed1e0ffa25a2a00b8d (diff) | |
download | tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar.gz tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar.bz2 tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar.lz tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar.xz tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.tar.zst tangerine-wallet-browser-41057a76c567a80f98ff17e5d7a24c9500c11e4c.zip |
[NewUI] Build mascara with uglification and gzipping. (#2735)
* Adds uglification and gzipping.
* Build mascara with uglification and gzipping.
* Remove gzipping from extension build.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 7 |
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 |