TOOL: Add script to generate webpack bundle report (#2587)

This commit is contained in:
catloversg
2026-03-21 00:44:22 +07:00
committed by GitHub
parent 08604e1e76
commit 2e7d591583
2 changed files with 111 additions and 3 deletions

View File

@@ -100,6 +100,7 @@
"tinybench": "^6.0.0",
"typescript": "^5.9.3",
"webpack": "^5.105.4",
"webpack-bundle-analyzer": "^5.2.0",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.2",
"xml-formatter": "^3.6.7"
@@ -118,6 +119,7 @@
"url": "git+https://github.com/bitburner-official/bitburner-src.git"
},
"scripts": {
"analyze-bundle": "webpack --mode production --profile --json > dist/webpack-bundle-stats.json && webpack-bundle-analyzer dist/webpack-bundle-stats.json -m static -r dist/webpack-bundle-report.html --no-open",
"doc": "bash ./tools/doc.sh",
"format": "prettier -c --write .",
"format:report": "prettier -c .",