hyapp-admin-platform/vite.config.js
2026-05-02 13:02:57 +08:00

34 lines
623 B
JavaScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
css: {
modules: {
generateScopedName: "hy-[name]__[local]__[hash:base64:5]",
localsConvention: "camelCaseOnly"
}
},
resolve: {
alias: {
"@": new URL("./src", import.meta.url).pathname
}
},
plugins: [react()],
server: {
port: 7001,
proxy: {
"/api": {
target: "http://localhost:13100",
changeOrigin: true
}
}
},
preview: {
port: 7001
},
test: {
environment: "jsdom",
setupFiles: "./src/test/setup.js"
}
});