20 lines
383 B
TypeScript
20 lines
383 B
TypeScript
import type { WxtViteConfig } from 'wxt'
|
|
|
|
import UnoCSS from 'unocss/vite'
|
|
|
|
import { defineConfig } from 'wxt'
|
|
|
|
type VitePlugin = NonNullable<WxtViteConfig['plugins']>[number]
|
|
|
|
// See https://wxt.dev/api/config.html
|
|
export default defineConfig({
|
|
modules: ['@wxt-dev/module-vue'],
|
|
vite: () => {
|
|
return {
|
|
plugins: [
|
|
UnoCSS() as VitePlugin,
|
|
],
|
|
}
|
|
},
|
|
})
|