react-demo/vite.config.js

14 lines
270 B
JavaScript
Raw Permalink Normal View History

2024-03-09 11:46:48 +08:00
import { defineConfig } from 'vite'
2024-03-10 19:14:25 +08:00
import path from "path"
2024-03-09 11:46:48 +08:00
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2024-03-10 19:14:25 +08:00
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
2024-03-09 11:46:48 +08:00
})