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