1 Star 0 Fork 0

cheung_lei/react-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 856 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhanglei 提交于 2024-08-12 21:25 . init react-admin
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import eslintPlugin from "vite-plugin-eslint";
import { AntdResolve } from 'vite-plugin-style-import';
import { resolve } from "path";
function pathResolve(dir) {
return resolve(process.cwd(), ".", dir);
}
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [
react(),
eslintPlugin({
cache: false,
failOnError: false,
include: ["src/**/*.js", "src/**/*.tsx", "src/**/*.ts"],
}),
// createStyleImportPlugin({
// resolves: [AntdResolve()]
// })
],
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
},
},
postcss: {}
},
resolve: {
alias: [
{
find: /@\//,
replacement: `${pathResolve("src")}/`,
},
],
},
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cheung_lei/react-admin.git
[email protected]:cheung_lei/react-admin.git
cheung_lei
react-admin
react-admin
master

搜索帮助