initial commit

This commit is contained in:
2026-05-30 18:51:10 +00:00
commit 95f5fdd3ea
19 changed files with 3050 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
/**
* Vite config for the Chrome extension.
* Builds the extension into dist/ for loading as an unpacked extension.
*
* Usage:
* npm run dev — watch mode, rebuild on change
* npm run build — production build
*/
import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
root: 'src',
build: {
outDir: '../dist',
emptyOutDir: true,
rollupOptions: {
input: {
background: resolve(__dirname, 'src/background/background.js'),
content: resolve(__dirname, 'src/content/content.js'),
popup: resolve(__dirname, 'src/popup/popup.html'),
},
output: {
entryFileNames: '[name].js',
chunkFileNames: 'chunks/[name].js',
assetFileNames: '[name][extname]',
},
},
},
});