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:
@@ -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
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user