diff options
author | kumavis <aaron@kumavis.me> | 2018-03-24 06:49:34 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-24 06:49:34 +0800 |
commit | 154f384fe4cce76a268d31b8f535fbbac7a206af (patch) | |
tree | 707a3687959fb5d39213215fe07c27dca1201cde /gulpfile.js | |
parent | dc78594c3aac80150dbe7eecd05e05eeffa6da02 (diff) | |
download | dexon-wallet-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.gz dexon-wallet-154f384fe4cce76a268d31b8f535fbbac7a206af.tar.zst dexon-wallet-154f384fe4cce76a268d31b8f535fbbac7a206af.zip |
build - always create sourcemaps
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js index adfb148a..3b926377 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')) |