1 Star 1 Fork 0

xujianxing/rondo-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
xujianxing 提交于 2021-09-21 21:02 . style: ui改版
import reactRefresh from "@vitejs/plugin-react-refresh";
import istanbul from "rollup-plugin-istanbul";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import vitePluginImp from "vite-plugin-imp";
import path from "path";
export default defineConfig(({ mode }) => ({
base: "rondo",
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
modifyVars: {
// "@popover-background": "#2e3238"
"@btn-primary-color": "var(--font-normal)",
"@btn-primary-bg": "var(--bg-light)",
"@label-color": "var(--font-normal)",
"@input-bg": "var(--bg-main)",
"@input-color": "var(--font-normal)",
// "@select-item-selected-color": "var(--font-normal)",
// "@select-item-selected-bg": "var(--bg-light)",
"@select-background": "var(--bg-main)",
"@input-addon-bg": "var(--bg-light)",
"@modal-header-bg": "var(--bg)",
"@modal-content-bg": "var(--bg)",
"@modal-footer-bg": "var(--bg)",
"@modal-heading-color": "var(--font-normal)",
// "@select-selection-item-bg": "var(--bg-light)",
// "@select-selection-item-color": "var(--font-normal)",
},
},
},
},
plugins: [
tsconfigPaths(),
reactRefresh(),
vitePluginImp({
libList: [
{
libName: "antd",
style: (name) => `antd/lib/${name}/style/index.less`,
},
],
}),
mode === "test" &&
istanbul({
include: ["src/**/*.tsx"],
}),
],
build: {
outDir: "rondo",
},
resolve: {
alias: {
"~": path.resolve(__dirname, "./"),
"@": path.resolve(__dirname, "src"),
},
},
}));
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xujiangxing/rondo-web.git
git@gitee.com:xujiangxing/rondo-web.git
xujiangxing
rondo-web
rondo-web
master

搜索帮助