Skip to content
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

build: optimize the build issues with core and ui #89

Merged
merged 8 commits into from
Dec 19, 2023

Conversation

stone-lyl
Copy link
Collaborator

@stone-lyl stone-lyl commented Dec 19, 2023

The ui bundle size has been reduced by 656 KB

  • exclude all dependencies from node_modules from the bundle.
  • Add the webpack-bundle-analyzer tool
  • Bundle all css from ui into the data-story.css file
Before After
image image

The core dist size has been reduced by 0.5M

  • exclude *.test.ts files from the TypeScript compiler's build list.
Before After
image image
image image

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
data-story-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 7:17am

Copy link
Owner

@ajthinking ajthinking left a comment

Choose a reason for hiding this comment

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

Great improvement!! 😎

@stone-lyl stone-lyl merged commit a04efa8 into ajthinking:main Dec 19, 2023
1 check passed
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