1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #2607 from MetaMask/i2504-OperaFix

Ensure Opera build excludes chromereload file
This commit is contained in:
Thomas Huang 2017-11-27 11:38:58 -06:00 committed by GitHub
commit 94fe294caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }))
})