master
Raw Download raw file
 1import react from "@vitejs/plugin-react";
 2import { defineConfig } from "vite";
 3
 4export default defineConfig({
 5	plugins: [react()],
 6	css: {
 7		modules: {
 8			localsConvention: "camelCaseOnly",
 9		},
10	},
11	resolve: {
12		alias: {
13			"@": "/src",
14		},
15	},
16	define: {
17		__DEV__: false,
18	},
19	build: {
20		outDir: "dist-ui",
21	},
22	server: {
23		port: 3001,
24		proxy: {
25			"/api": {
26				target: "http://127.0.0.1:80",
27				changeOrigin: true,
28				secure: false,
29				ws: true,
30			},
31		},
32	},
33});