aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-11-22 07:19:10 +0800
committerDan Finlay <dan@danfinlay.com>2017-11-22 07:19:10 +0800
commit4a42c816c2a1d45e28d1d7064a29092569b7e796 (patch)
tree9e212896e4b7f26f471e23c4b340566ad4d0eef6
parent408bbe726f60c96d3fd2d8132900b822a1ca9fb6 (diff)
downloadtangerine-wallet-browser-4a42c816c2a1d45e28d1d7064a29092569b7e796.tar.gz
tangerine-wallet-browser-4a42c816c2a1d45e28d1d7064a29092569b7e796.tar.zst
tangerine-wallet-browser-4a42c816c2a1d45e28d1d7064a29092569b7e796.zip
Ensure Opera build excludes chromereload file
Fixes #2504
-rw-r--r--gulpfile.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index f01762c2a..293179892 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -120,11 +120,17 @@ gulp.task('manifest:production', function() {
'./dist/firefox/manifest.json',
'./dist/chrome/manifest.json',
'./dist/edge/manifest.json',
+ './dist/opera/manifest.json',
],{base: './dist/'})
+
+ // Exclude chromereload script in production:
.pipe(gulpif(!debug,jsoneditor(function(json) {
- json.background.scripts = ["scripts/background.js"]
+ json.background.scripts = json.background.scripts.filter((script) => {
+ return !script.includes('chromereload')
+ })
return json
})))
+
.pipe(gulp.dest('./dist/', { overwrite: true }))
})