18 lines
384 B
TypeScript
18 lines
384 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { crx } from '@crxjs/vite-plugin';
|
|
import manifest from './src/manifest.json' assert { type: 'json' };
|
|
|
|
export default defineConfig({
|
|
plugins: [crx({ manifest })],
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
popup: 'src/popup/popup.html',
|
|
}
|
|
}
|
|
},
|
|
publicDir: 'public'
|
|
});
|