aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-24 06:49:34 +0800
committerkumavis <aaron@kumavis.me>2018-03-24 06:49:34 +0800
commit154f384fe4cce76a268d31b8f535fbbac7a206af (patch)
tree707a3687959fb5d39213215fe07c27dca1201cde /gulpfile.js
parentdc78594c3aac80150dbe7eecd05e05eeffa6da02 (diff)
downloadtangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.gz
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.bz2
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.lz
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.xz
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.zst
tangerine-wallet-browser-154f384fe4cce76a268d31b8f535fbbac7a206af.zip
build - always create sourcemaps
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js
index adfb148a9..3b926377a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -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 ? './' : '../../maps'))
// write completed bundles
.pipe(gulp.dest('./dist/firefox/scripts'))
.pipe(gulp.dest('./dist/chrome/scripts'))