Merge pull request #2607 from MetaMask/i2504-OperaFix

Ensure Opera build excludes chromereload file
feature/default_network_editable
Thomas Huang 7 years ago committed by GitHub
commit 94fe294caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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 }))
})

Loading…
Cancel
Save