initial commit
This commit is contained in:
@@ -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]',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user