import { defineConfig } from 'vite' import path from "path" import react from '@vitejs/plugin-react' import vitePluginImp from 'vite-plugin-imp' // https://vitejs.dev/config/ export default defineConfig({ server: { port: 3000 }, plugins: [ react(), vitePluginImp({ libList: [ { libName: 'antd', style: (name) => `antd/es/${name}/style`, } ] }) ], resolve: { alias: [ { find: '@', replacement: path.resolve(__dirname, 'src') }, ], }, css: { preprocessorOptions: { less: { // modifyVars: { 'primary-color': '#13c2c2' }, javascriptEnabled: true, }, }, }, })