diff options
author | Dan <danjm.com@gmail.com> | 2018-03-27 02:43:49 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-27 02:43:49 +0800 |
commit | 4f0881e41be82de28ae6a444f54123b0ee2a04a0 (patch) | |
tree | dc8e623792f60ddc8309766515cab7d8f89ae89a /gulpfile.js | |
parent | 35baff15aa181a5ec647d5738c027c8ba1ee9285 (diff) | |
parent | 4efb1c6b491901cbb42ef27a4c6c55814f24d764 (diff) | |
download | tangerine-wallet-browser-4f0881e41be82de28ae6a444f54123b0ee2a04a0.tar.gz tangerine-wallet-browser-4f0881e41be82de28ae6a444f54123b0ee2a04a0.tar.zst tangerine-wallet-browser-4f0881e41be82de28ae6a444f54123b0ee2a04a0.zip |
Merge branch 'master' into i18n-translator-redux
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js index adfb148a9..f57ea6206 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -339,7 +339,7 @@ function generateBundler(opts, performBundle) { const browserifyOpts = assign({}, watchify.args, { entries: ['./app/scripts/'+opts.filename], plugin: 'browserify-derequire', - debug: debug, + debug: true, fullPaths: debug, }) @@ -405,13 +405,13 @@ function bundleTask(opts) { .pipe(buffer()) // sourcemaps // loads map from browserify file - .pipe(gulpif(debug, sourcemaps.init({ loadMaps: true }))) + .pipe(sourcemaps.init({ loadMaps: true })) // Minification .pipe(gulpif(opts.isBuild, uglify({ mangle: { reserved: [ 'MetamaskInpageProvider' ] }, }))) // writes .map file - .pipe(gulpif(debug, sourcemaps.write('./'))) + .pipe(sourcemaps.write(debug ? './' : '../../sourcemaps')) // write completed bundles .pipe(gulp.dest('./dist/firefox/scripts')) .pipe(gulp.dest('./dist/chrome/scripts')) |