From 4a42c816c2a1d45e28d1d7064a29092569b7e796 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 21 Nov 2017 15:19:10 -0800 Subject: Ensure Opera build excludes chromereload file Fixes #2504 --- gulpfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 })) }) -- cgit v1.2.3