aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-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 }))
})