YunaiV
2ea2d9b18f
perf(build): 继续优化构建和 lint 执行效率
...
- 关闭构建 gzip size 统计并调整 chunk 警告阈值
- 移除 Vite dev/build 链路中的 ESLint 和 progress 插件
- 删除未使用的 legacy、terser、ejs、eslint、progress 构建依赖
- 为 ESLint、Stylelint、Prettier 增加缓存脚本
- 新增 lint-staged 配置,仅处理变更文件
perf(lint): 将 ESLint 热缓存耗时从约 16.3s 降到约 1.3s
2026-06-20 04:57:48 -07:00
YunaiV
3d37515cfc
perf(build): 将生产构建从约 41.6s 优化到约 21.6s
...
- 使用 oxc 替换 terser 作为生产压缩器
- 生产构建跳过 ESLint、progress 和 auto d.ts 生成
- gzip/brotli 产物改为通过 VITE_COMPRESS 按需生成
- 移除无用的 EJS 和 top-level-await 构建插件
- 删除 vite-plugin-top-level-await 依赖
2026-06-20 04:31:53 -07:00
YunaiV
e61581eef2
fix(vite): 使用相对路径注入 SCSS 变量
...
对应知识星球问题:https://wx.zsxq.com/group/88858522214142/topic/82255281581554842
将 variables.scss 的注入路径从项目绝对路径改为相对当前 SCSS 文件的路径,避免 Windows 中文目录下 Sass 解析 @use 失败。
2026-06-14 01:23:54 +08:00
YunaiV
a2d043bc72
fix: normalize scss variable injection on Windows
...
- normalize injected variables.scss path for Windows Sass
- skip variable-defining scss files to avoid duplicate global variables
2026-05-18 00:47:16 +08:00
YunaiV
7622a44bbb
fix:尝试修复 windows 的兼容性:additionalData: `@use "${pathResolve('src/styles/variables.scss')}" as *;`,
2026-05-18 00:31:55 +08:00
YunaiV
a3f89d686c
Merge pull request #215 from yudaocode/upgrade
...
# Conflicts:
# build/vite/optimize.ts
# package-lock.json
# package.json
# pnpm-lock.yaml
2026-05-17 13:56:29 +08:00
DevDengChao
26c7544829
chore: upgrade vite to 8.0.1 and @vitejs/plugin-legacy to 8.0.0
...
- vite
- @vitejs/plugin-legacy
- adapt vite.config.ts for Vite 8 code splitting and Lightning CSS recovery
Co-authored-by: OpenAI Codex <codex@openai.com>
2026-03-23 11:08:26 +08:00
DevDengChao
fd11e07e92
chore(deps): upgrade Vite 5.1.4 → 7.3.1 and ecosystem plugins
...
Core:
- vite 5.1.4 → 7.3.1
- @vitejs/plugin-vue 5 → 6.0.4
- @vitejs/plugin-vue-jsx 3 → 5.1.4
- @vitejs/plugin-legacy 5 → 7.2.1
- @types/node 20.17.9 → 25.3.3
Plugins:
- unplugin-auto-import 0.16.7 → 21.0.0
- unplugin-vue-components 0.25.2 → 31.0.0
- unplugin-element-plus 0.8.0 → 0.11.2
- vite-plugin-svg-icons-ng 1.3.1 → 1.5.2
- vite-plugin-top-level-await 1.4.4 → 1.6.0
Config:
- Switch to Sass Modern Compiler API (api: 'modern-compiler')
- Remove silenceDeprecations workaround
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 19:49:57 +08:00
DevDengChao
643eb92aff
chore(deps): upgrade Vue I18n 9.10.2 → 11.2.8, fix related compat issues
...
- Upgrade vue-i18n to 11.2.8, @intlify/unplugin-vue-i18n to 11.0.7
- Remove vue-i18n CJS alias from vite.config.ts (no longer needed)
- Remove vue-i18n from optimizeDeps include list
- Upgrade bpmn-js-token-simulation 0.36.2 → 0.39.2 (ids@3 compat)
- Fix duplicate route name 'Redirect' (Vue Router 5 enforces uniqueness)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 19:36:31 +08:00
YunaiV
5b5ffb8435
feat: update vite.config.ts to add manual chunks for form-create and form-designer
2025-05-12 23:08:21 +08:00
YunaiV
e891a4bfd2
【缺陷修复】全局:"legacy-js-api" 报错
2024-12-15 17:15:02 +08:00
preschooler
8a8ae557f7
🐞 fix:@import 修改为 @use 以应对 sass 升级弃用 @import。
2024-10-23 11:01:23 +08:00
puhui999
ffdd3325dd
【代码优化】分支合并
2024-08-19 16:38:15 +08:00
YunaiV
53cef8b475
【代码优化】echarts 独立 chunk 打包
2024-08-08 09:35:20 +08:00
YunaiV
9b0890d195
1. 忽略 VITE_CJS_IGNORE_WARNING 告警
...
2. 忽略 @unocss/order 和 @unocss/order-attributify 告警
3. 修复 https 配置项的告警
2024-03-01 01:05:03 +08:00
xingyuv
e6ccfbddb6
chore: update vite 4.2
2023-03-23 09:42:01 +08:00
YunaiV
281bddcd40
增加 optimize 文件列表,避免 reload
2023-03-07 19:57:46 +08:00
YunaiV
7f336bbe92
暂时取消 https 加速方案,主要考虑 server 端没有 https
2023-03-07 19:21:39 +08:00
answer.huang
000b0059c6
feat: 改用 https,加快首次打开页面
2023-03-05 23:04:20 +08:00
YunaiV
56f3017baa
初始化项目,自 v1.7.1 版本开始
2023-02-11 00:44:00 +08:00