Skip to content

feat: [ts-starter #8] add script for bundle size analysis#12

Open
ehsanmmd wants to merge 2 commits into
mainfrom
feat/bundle-size-analysis
Open

feat: [ts-starter #8] add script for bundle size analysis#12
ehsanmmd wants to merge 2 commits into
mainfrom
feat/bundle-size-analysis

Conversation

@ehsanmmd

Copy link
Copy Markdown
Contributor

No description provided.

@ehsanmmd
ehsanmmd requested a review from momesana March 20, 2024 05:10
@ehsanmmd ehsanmmd self-assigned this Mar 20, 2024
@ehsanmmd
ehsanmmd force-pushed the feat/bundle-size-analysis branch from 19ba11e to 293dfa2 Compare March 23, 2024 07:35
@ehsanmmd
ehsanmmd force-pushed the feat/bundle-size-analysis branch from 293dfa2 to 3c40bce Compare March 23, 2024 07:42
Comment thread package.json Outdated
"stats": "webpack --mode production --profile --json > stats.json",
"bundle-analysis": "pnpm stats && pnpm dlx webpack-bundle-analyzer stats.json",
"bundle-stats": "webpack --mode production --profile --json > stats.json",
"show-bundle-analysis": "pnpm dlx webpack-bundle-analyzer stats.json",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should that help?
You almost always need to create a new stat file when showing the analysis. So it doesn't make sense to have a script running on an existing stats file. The stats is also short enough and doesn't need to be changed to bundle-stats IMO.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants