add: background.js for automatic code input

This commit is contained in:
2026-03-18 12:33:21 +01:00
parent becc4f9445
commit e8a14e7e69
8 changed files with 3748 additions and 56 deletions

View File

@@ -8,13 +8,9 @@ export default defineConfig({
rollupOptions: {
input: [
resolve(__dirname, 'index.html'),
resolve(__dirname, 'src/content.js')
],
output: {
entryFileNames: (chunkInfo) => {
if (chunkInfo.name === 'content') {
return 'scripts/content.js';
}
return 'assets/[name]-[hash].js';
},
},