hjhan
|
2bfdce6ee0
|
[EQD-6838] 前端 bundle 确定性重建:自动生成脚本 + 发布期自动打 bundle
新增 rebuild-bundles.py/.sh/.ps1,按 bundleconfig.json 确定性重建 6 个 bundle 产物(剥 BOM、CRLF->LF、文件间换行分隔、CSS 相对 url() 重写,已逐字节比对验证与已提交版一致,其中 bundle.css 修正了历史打包产生的 CSS 注释 GBK 乱码)。
YLErpWeb.csproj 新增 GenerateBundlesBeforePublish 目标,在 publish 前自动运行脚本重建 bundle(CI 自动生效,无 python3 时优雅跳过回退已提交产物),从此改源文件后部署自动重新打 bundle,不再需要手工记得到处重建。
.gitattributes 将 bundle 锁为 eol=lf,.editorconfig 为 JS/TS 加 charset=utf-8,从根上防止 BOM/ZWNBSP 复发。
|
2026-07-29 17:47:13 +08:00 |
|
hjhan
|
6911b9d758
|
revert: 禁用 BuildBundlerMinifier 并还原原始可用 bundle 产物,恢复测试环境
- 现象:上一提交接入 BuildBundlerMinifier 后,Jenkins 构建按 bundleconfig.json 重建的
bundle 与原始可用版本不一致(dayjs 插件顺序错乱、且 bundleconfig.json 缺少 moment.js
等多文件),导致 bundle.js 加载即抛 dayjs_plugin_isoWeek is not defined,整页脚本崩溃
(jqGrid/main/otcformat 等全局未定义)。
- 本次先恢复可用性:
1. 还原 8 个原始可用 bundle 产物(b9f2bd14 版本: jquery.js/bundle.js/vue.js/bundle.css/
bundleV2.css/bundleV2.js/bundle.min.css/bundleV2.min.css) 重新纳入版本库,Jenkins 原样部署。
2. 移除 YLErpWeb.csproj 的 BuildBundlerMinifier 包,避免构建时再用错乱 config 覆盖还原产物。
3. 还原 .gitignore 中 bundle 忽略段,使产物重新被跟踪。
- 后续(待讨论):修正 bundleconfig.json 的输入顺序与文件集(对齐原始可用顺序 + 补 moment.js
等),再重新启用自动构建,届时 fastVue.base.js 的 enter 改动会被正确打包。
- 注:本提交还原的是 enter 修复前的可用基线(页面可用,回车触发计算器仍待第二步解决)。
|
2026-07-29 15:57:38 +08:00 |
|
hjhan
|
14ed09d628
|
build: 接入 BuildBundlerMinifier 自动重建 bundle 产物并剥离源文件 BOM
- 根因:页面(_MainLayout 等)加载的是 bundle.js 等由 bundleconfig.json 打包的生成产物,
但 csproj 未接入 BundlerMinifier,dotnet build 不会重生它们,Jenkins 只是把 git 里
陈旧的 bundle.js 原样发布 -> 改了 fastVue.base.js 后回车不生效(部署的 bundle 仍是无
enter 的旧版)。且源文件带 UTF-8 BOM,拼接后每个 BOM 落入文件中间成为 ZWNBSP,提交
diff 充满不可见字符(历史上曾多次在产物上手工清 BOM 打补丁)。
- 修复:
1. YLErpWeb.csproj 新增 BuildBundlerMinifier(3.2.449);其 BundleMinify 目标在
BeforeCompile 自动按 bundleconfig.json 重建全部 bundle,Jenkins 构建即自动产出正确版本,
不再需要手工重建并提交 bundle.js。
2. .gitignore 忽略 8 个生成产物(jquery.js/bundle.js/vue.js/bundle.css/bundleV2.css/
bundleV2.js/bundle.min.css/bundleV2.min.css) 并 git rm --cached 取消跟踪;这些产物
永不再入版本库、永不陈旧。
3. 剥离 15 个喂给 bundle 的源文件(及 css)开头的 UTF-8 BOM,使重建产物不再含 ZWNBSP。
- 验证:本地 dotnet build -t:BundleMinify 重建后 8 个 bundle 全部 BOM=0,bundle.js 含完整
enter 链路(_enterFired/isEnter/$emit('enter'));删除 bundle.min.css 后构建可自动重建。
|
2026-07-29 15:42:35 +08:00 |
|
gongpei
|
0bd3b6bb0e
|
支持存续期报送
|
2026-04-21 14:32:16 +08:00 |
|
锦麟 王
|
ab8ba9bae0
|
添加日志,添加引用 检查确认书生成
|
2026-03-27 09:43:08 +08:00 |
|
锦麟 王
|
069f608073
|
发布加上模板
|
2026-03-26 11:23:24 +08:00 |
|
gongpei
|
89df4443bd
|
feat: 债券付息收盘处理
|
2025-10-21 13:43:32 +08:00 |
|
吴方海
|
d8643aab26
|
TRS-ZS-564 月报
|
2025-08-15 17:42:58 +08:00 |
|
吴方海
|
6c5cf3289b
|
去掉日终估值导入
|
2025-04-24 16:47:03 +08:00 |
|
吴方海
|
8e61f23e18
|
保证金算法&资金计算
|
2025-04-16 15:15:59 +08:00 |
|
吴方海
|
6ce02c282c
|
fix
|
2025-04-14 18:03:15 +08:00 |
|
吴方海
|
327a4158a5
|
删除定义文件类型,删除所有判断山西固收的地方
|
2024-06-05 14:37:30 +08:00 |
|
汤旺
|
4fe97de1b6
|
#TRS-ZS-81 客户信息配置
|
2024-05-31 15:33:26 +08:00 |
|
吴方海
|
f9d8a256a6
|
从山证v2.3.0拷贝
|
2024-05-09 14:06:26 +08:00 |
|