it-tools/vite.config.ts

23 lines
468 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-04-12 19:24:14 +08:00
import markdown from 'vite-plugin-md';
2022-03-31 06:33:29 +08:00
// https://vitejs.dev/config/
export default defineConfig({
2022-04-12 19:24:14 +08:00
plugins: [
vue({
include: [/\.vue$/, /\.md$/],
}),
vueJsx(),
markdown(),
],
2022-03-31 06:33:29 +08:00
resolve: {
alias: {
2022-04-09 21:17:59 +08:00
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
});