pastebin/webui/vite.config.ts
2023-10-08 20:59:36 +08:00

21 lines
505 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@views': path.resolve(__dirname, "./src/views"),
'@request': path.resolve(__dirname, "./src/request"),
'@stores': path.resolve(__dirname, "./src/stores"),
'@gen': path.resolve(__dirname, "./src/gen"),
}
}
})