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:
commit
94fe294caf
@ -120,11 +120,17 @@ gulp.task('manifest:production', function() {
|
|||||||
'./dist/firefox/manifest.json',
|
'./dist/firefox/manifest.json',
|
||||||
'./dist/chrome/manifest.json',
|
'./dist/chrome/manifest.json',
|
||||||
'./dist/edge/manifest.json',
|
'./dist/edge/manifest.json',
|
||||||
|
'./dist/opera/manifest.json',
|
||||||
],{base: './dist/'})
|
],{base: './dist/'})
|
||||||
|
|
||||||
|
// Exclude chromereload script in production:
|
||||||
.pipe(gulpif(!debug,jsoneditor(function(json) {
|
.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
|
return json
|
||||||
})))
|
})))
|
||||||
|
|
||||||
.pipe(gulp.dest('./dist/', { overwrite: true }))
|
.pipe(gulp.dest('./dist/', { overwrite: true }))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user