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