22 lines
504 B
TypeScript
22 lines
504 B
TypeScript
import vue from '@vitejs/plugin-vue';
|
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
import { viteSingleFile } from 'vite-plugin-singlefile';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
imports: ['vue'],
|
|
dts: './src/types/auto-imports.d.ts'
|
|
}),
|
|
viteSingleFile()
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
}
|
|
});
|