16 lines
326 B
TypeScript
16 lines
326 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { crx } from '@crxjs/vite-plugin'
|
|
import manifest from './manifest.json' with { type: 'json' }
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
crx({ manifest }),
|
|
],
|
|
build: {
|
|
outDir: 'dist',
|
|
emptyOutDir: true,
|
|
},
|
|
})
|