fix: compile by environment
This commit is contained in:
parent
8476595011
commit
52cd203a53
1 changed files with 24 additions and 14 deletions
|
@ -11,7 +11,8 @@ export default defineConfig({
|
|||
runner: {
|
||||
startUrls: ['https://www.example.com/']
|
||||
},
|
||||
manifest: {
|
||||
manifest: ({ browser, manifestVersion }) => {
|
||||
const common = {
|
||||
name: displayName,
|
||||
permissions: ['storage'],
|
||||
homepage_url: homepage,
|
||||
|
@ -21,11 +22,20 @@ export default defineConfig({
|
|||
'48': 'logo.png',
|
||||
'128': 'logo.png'
|
||||
}
|
||||
// browser_specific_settings: {
|
||||
// gecko: {
|
||||
// id: 'molvqingtai@gmail.com'
|
||||
// }
|
||||
// }
|
||||
}
|
||||
return {
|
||||
chrome: {
|
||||
...common
|
||||
},
|
||||
firefox: {
|
||||
...common,
|
||||
browser_specific_settings: {
|
||||
gecko: {
|
||||
id: 'molvqingtai@gmail.com'
|
||||
}
|
||||
}
|
||||
}
|
||||
}[browser]
|
||||
},
|
||||
vite: (env) => ({
|
||||
define: {
|
||||
|
|
Loading…
Reference in a new issue