pastebin/webui/vite.config.ts

21 lines
505 B
TypeScript
Raw Normal View History

2023-09-30 13:47:59 +00:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2023-10-08 12:59:36 +00:00
import * as path from "path";
2023-09-30 13:47:59 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
2023-10-08 12:59:36 +00:00
'@views': path.resolve(__dirname, "./src/views"),
'@request': path.resolve(__dirname, "./src/request"),
'@stores': path.resolve(__dirname, "./src/stores"),
'@gen': path.resolve(__dirname, "./src/gen"),
2023-09-30 13:47:59 +00:00
}
}
})