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