15 lines
291 B
TypeScript
15 lines
291 B
TypeScript
import { defineConfig } from "vite";
|
|
import path from 'path'
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
/* src 别名为 @ */
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
});
|