Skip to content

Commit 7620af3

Browse files
committed
docs(config): 更新VitePress基础配置和构建设置
移除环境相关的base路径和outDir配置,统一使用根路径 增加构建时的chunk大小警告限制至2MB
1 parent 3b4c4e9 commit 7620af3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/.vitepress/config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import { defineConfig } from 'vitepress'
33
export default defineConfig({
44
title: 'Python基础编程学习',
55
description: 'Python基础编程完整学习教程',
6-
base: process.env.NODE_ENV === 'production' ? '/python-awesome-basic-coding/' : '/',
7-
outDir: '../dist',
6+
base: '/',
87
ignoreDeadLinks: true,
98
cleanUrls: true,
10-
9+
build: {
10+
chunkSizeWarningLimit: 2000 // 提高到2MB
11+
},
12+
1113
themeConfig: {
1214
logo: '/logo.svg',
1315

@@ -946,4 +948,4 @@ export default defineConfig({
946948
// 可以在这里添加markdown插件
947949
}
948950
}
949-
})
951+
})

0 commit comments

Comments
 (0)