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