fix: background.js, remove: unnecessary permissions

This commit is contained in:
2026-03-18 13:46:03 +01:00
parent e8a14e7e69
commit 3176af094e
7 changed files with 85 additions and 57 deletions

View File

@@ -6,24 +6,26 @@ export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: [
resolve(__dirname, 'index.html'),
],
input: {
main: resolve(__dirname, 'index.html'),
content: resolve(__dirname, 'src/content.js'),
background: resolve(__dirname, 'src/background.js'),
},
output: {
format: 'es',
entryFileNames: (chunkInfo) => {
if (chunkInfo.name === 'content' || chunkInfo.name === 'background') {
return 'scripts/[name].js';
}
return 'assets/[name]-[hash].js';
},
manualChunks: undefined,
},
},
},
server: {
port: 3000,
},
resolve: {
alias: {
'@/': '/src/',
'@': resolve(__dirname, './src'),
},
},
publicDir: 'public',
});
});