diff options
author | kumavis <aaron@kumavis.me> | 2018-03-24 09:38:27 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-24 09:38:27 +0800 |
commit | 6219a7da4b42edc2b5d8b8248921ff573ae00b2d (patch) | |
tree | 881b06060380ab60352ccf560889606d25401489 /gulpfile.js | |
parent | 2eaac897bf965054c2db0a431391d4c92caaae2d (diff) | |
download | dexon-wallet-6219a7da4b42edc2b5d8b8248921ff573ae00b2d.tar.gz dexon-wallet-6219a7da4b42edc2b5d8b8248921ff573ae00b2d.tar.zst dexon-wallet-6219a7da4b42edc2b5d8b8248921ff573ae00b2d.zip |
build - always generate 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 9a694add..bf198efb 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, }) @@ -411,7 +411,7 @@ function bundleTask(opts) { mangle: { reserved: [ 'MetamaskInpageProvider' ] }, }))) // writes .map file - .pipe(sourcemaps.write(debug ? './' : '../../sourcemaps')) + .pipe(sourcemaps.write('../../sourcemaps')) // write completed bundles .pipe(gulp.dest('./dist/firefox/scripts')) .pipe(gulp.dest('./dist/chrome/scripts')) |