it-tools/vite.config.ts

16 lines
357 B
TypeScript
Raw Normal View History

2022-04-09 21:17:59 +08:00
import { fileURLToPath, URL } from 'url';
2022-03-31 06:33:29 +08:00
2022-04-09 21:17:59 +08:00
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
2022-03-31 06:33:29 +08:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx()],
resolve: {
alias: {
2022-04-09 21:17:59 +08:00
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
});