Fix CI: add generate-webpack-stats-file alias and fix stats path

- Add `generate-webpack-stats-file` as alias to `analyze` for backwards
  compatibility with CI workflow
- Change stats.json output path to '../stats.json' to match old webpack
  config behavior (generates in root, not in web-build/)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-01-10 16:30:07 +02:00
parent b5cf7ce65a
commit 791d903d16
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -70,6 +70,7 @@
"make-deploy-bundle": "bash scripts/bundleUpdate.sh",
"analyze": "BUNDLE_ANALYZE=true yarn build-web",
"analyze:open": "BUNDLE_ANALYZE=server yarn build-web",
"generate-webpack-stats-file": "yarn analyze",
"icons:optimize": "svgo -f ./assets/icons"
},
"dependencies": {
+1 -1
View File
@@ -180,7 +180,7 @@ export default defineConfig({
process.env.BUNDLE_ANALYZE === 'server' ? 'server' : 'static',
openAnalyzer: process.env.BUNDLE_ANALYZE === 'server',
generateStatsFile: true,
statsFilename: 'stats.json',
statsFilename: '../stats.json',
}
: undefined,
},