Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ehsanmmd
Copy link
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
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
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
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