feat: 基础配置

This commit is contained in:
2025-05-10 02:03:44 +08:00
parent 44dfee367b
commit 13875be505
3 changed files with 12 additions and 12 deletions

View File

@@ -9,5 +9,14 @@ export const overridesPreferences = defineOverridesPreferences({
// overrides
app: {
name: import.meta.env.VITE_APP_TITLE,
layout: 'sidebar-mixed-nav',
},
sidebar: {
width: 220,
},
theme: {
builtinType: 'violet',
colorPrimary: 'hsl(245 82% 67%)',
mode: 'auto',
},
});

View File

@@ -5,8 +5,8 @@ export default defineConfig(async () => {
application: {},
vite: {
server: {
proxy: {
port: 8866,
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),

View File

@@ -25,14 +25,9 @@
},
"type": "module",
"scripts": {
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build",
"build": "pnpm run build --filter=@vben/web-antd",
"build:analyze": "turbo build:analyze",
"build:antd": "pnpm run build --filter=@vben/web-antd",
"build:docker": "./scripts/deploy/build-local-docker-image.sh",
"build:docs": "pnpm run build --filter=@vben/docs",
"build:ele": "pnpm run build --filter=@vben/web-ele",
"build:naive": "pnpm run build --filter=@vben/web-naive",
"build:play": "pnpm run build --filter=@vben/playground",
"changeset": "pnpm exec changeset",
"check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell",
"check:circular": "vsh check-circular",
@@ -41,12 +36,8 @@
"check:type": "turbo run typecheck",
"clean": "node ./scripts/clean.mjs",
"commit": "czg",
"dev": "turbo-run dev",
"dev:antd": "pnpm -F @vben/web-antd run dev",
"dev": "pnpm -F @vben/web-antd run dev",
"dev:docs": "pnpm -F @vben/docs run dev",
"dev:ele": "pnpm -F @vben/web-ele run dev",
"dev:naive": "pnpm -F @vben/web-naive run dev",
"dev:play": "pnpm -F @vben/playground run dev",
"format": "vsh lint --format",
"lint": "vsh lint",
"postinstall": "pnpm -r run stub --if-present",