12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { defineConfig } from 'vite'
- import path from "path"
- import react from '@vitejs/plugin-react'
- import vitePluginImp from 'vite-plugin-imp'
-
-
- export default defineConfig({
- server: {
- proxy: {
- '/api/': {
-
- target: 'http://127.0.0.1:8087',
-
-
- changeOrigin: true,
- },
- }
- },
- plugins: [
- react(),
- vitePluginImp({
- libList: [
- {
- libName: 'antd',
- style: (name) => `antd/es/${name}/style`,
- }
- ]
- })
- ],
- resolve: {
- alias: [
- { find: '@', replacement: path.resolve(__dirname, 'src') },
- ],
- },
- css: {
- preprocessorOptions: {
- less: {
-
- javascriptEnabled: true,
- },
- },
- },
- })
|