12345678910111213141516171819202122232425262728293031 |
- import { defineConfig } from "vite";
- import path from "path";
- import react from "@vitejs/plugin-react";
-
- // https://vitejs.dev/config/
- export default defineConfig({
- // base: "/admin/",
- server: {
- port: 3001,
- host: "0.0.0.0",
- proxy: {
- "/api": {
- target: "http://localhost:9087",
- // target: 'http://t.njyz.tech',
- changeOrigin: true,
- },
- },
- },
- plugins: [react()],
- resolve: {
- alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }],
- },
- css: {
- preprocessorOptions: {
- less: {
- // modifyVars: { 'primary-color': '#13c2c2' },
- javascriptEnabled: true,
- },
- },
- },
- });
|