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 修复前的可用基线(页面可用,回车触发计算器仍待第二步解决)。
This commit is contained in:
hjhan
2026-07-29 15:57:38 +08:00
parent 14ed09d628
commit 6911b9d758
10 changed files with 26823 additions and 12 deletions
-11
View File
@@ -231,14 +231,3 @@ logfile
/.idea/.idea.YLerpbase/.idea /.idea/.idea.YLerpbase/.idea
/NuGet.Config /NuGet.Config
/.trae /.trae
# BundlerMinifier 生成产物(由 dotnet build 依据 bundleconfig.json 自动重建,禁止提交)
# 之前手工提交导致测试环境拉到陈旧 / 含 BOM(ZWNBSP) 的产物;接入 BuildBundlerMinifier 后由构建自动生成
/YLErpWeb/wwwroot/Statics/bundles/jquery.js
/YLErpWeb/wwwroot/Statics/bundles/bundle.js
/YLErpWeb/wwwroot/Statics/bundles/vue.js
/YLErpWeb/wwwroot/Statics/bundles/bundle.css
/YLErpWeb/wwwroot/Statics/bundles/bundleV2.css
/YLErpWeb/wwwroot/Statics/bundles/bundleV2.js
/YLErpWeb/wwwroot/Statics/bundles/bundle.min.css
/YLErpWeb/wwwroot/Statics/bundles/bundleV2.min.css
-1
View File
@@ -20,7 +20,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="BuildBundlerMinifier" Version="3.2.449" />
<PackageReference Include="Lazy.Captcha.Core" Version="2.0.6" /> <PackageReference Include="Lazy.Captcha.Core" Version="2.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.9" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.9" />
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long