Private
Public Access
1
0

优化:移除重复逻辑和语法高亮支持

- 提取文件列表排序公共函数 sortFileList
- 统一应用文件夹优先排序规则
- 移除生产环境 source map,减小打包体积
- 提升代码可维护性
This commit is contained in:
2026-02-04 10:09:20 +08:00
parent a5d30684ed
commit 1708c65c34
5 changed files with 32 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ export default defineConfig({
build: {
outDir: 'dist',
emptyOutDir: true,
sourcemap: true, // 用 source map 用于调试
sourcemap: false, // 生产环境禁用 source map,减小打包体积
rollupOptions: {
output: {
manualChunks: {