mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-09 01:31:47 +00:00
27 lines
720 B
JavaScript
27 lines
720 B
JavaScript
import {defineConfig} from "vite";
|
|
import path from "path";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@contexts": path.resolve(__dirname, "./src/common/contexts"),
|
|
"@components": path.resolve(__dirname, "./src/common/components"),
|
|
"@states": path.resolve(__dirname, "./src/states"),
|
|
"@": path.resolve(__dirname, "./src"),
|
|
}
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8025"
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
outDir: "../build",
|
|
chunkSizeWarningLimit: 1600,
|
|
emptyOutDir: true
|
|
}
|
|
}); |