diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2017-11-28 01:38:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 01:38:58 +0800 |
commit | 94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3 (patch) | |
tree | a811eb099c66292cdaf31747f766dcdddb45c5c5 | |
parent | cc304647aeb8a0e78c0452d9f20112d9e5acbc6e (diff) | |
parent | 4a42c816c2a1d45e28d1d7064a29092569b7e796 (diff) | |
download | tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar.gz tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar.bz2 tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar.lz tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar.xz tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.tar.zst tangerine-wallet-browser-94fe294cafbe9bfef91f2b9c1aff4caddb35ebd3.zip |
Merge pull request #2607 from MetaMask/i2504-OperaFix
Ensure Opera build excludes chromereload file
-rw-r--r-- | gulpfile.js | 8 |
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 })) }) |