12345678910111213141516171819202122232425262728293031 |
- import { defineConfig } from "vite";
- import path from "path";
- import react from "@vitejs/plugin-react";
-
-
- export default defineConfig({
- base: "",
- server: {
- port: 3001,
- host: "0.0.0.0",
- proxy: {
- "/api": {
- target: "http://192.168.89.147:9087",
-
- changeOrigin: true,
- },
- },
- },
- plugins: [react()],
- resolve: {
- alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
- },
- css: {
- preprocessorOptions: {
- less: {
-
- javascriptEnabled: true,
- },
- },
- },
- });
|