it-tools/vite.config.ts

19 lines
390 B
TypeScript
Raw Normal View History

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