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

The bundle is HUGE #9

Open
KB1RD opened this issue Oct 27, 2019 · 3 comments
Open

The bundle is HUGE #9

KB1RD opened this issue Oct 27, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request high priority

Comments

@KB1RD
Copy link
Owner

KB1RD commented Oct 27, 2019

All said and done, its around 24MB that gets sent to the client. This is insane. I really need to figure out where all this is coming from and eliminate it. I have a feeling that most of it comes from the UI framework that I'm using. I should import only the components that I need. First, I want to get this to a stable state though.

@KB1RD KB1RD added enhancement New feature or request low priority labels Oct 27, 2019
@KB1RD KB1RD self-assigned this Oct 27, 2019
@KB1RD
Copy link
Owner Author

KB1RD commented Oct 27, 2019

"You are using a whole package of antd, please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size." -- Hopefully it'll be an easy fix

@KB1RD
Copy link
Owner Author

KB1RD commented Nov 4, 2019

Moving this to the top because its just ridiculous.

@KB1RD
Copy link
Owner Author

KB1RD commented Feb 28, 2020

Just to give a quick update: The NPM package that I linked had horrible docs (to the point where they had unanswered GH issues open asking how to use it), so I just bit the bullet and switched to Bootstrap Vue. This is probably a better long term decision since I can do things like support different themes easily. I also designed a custom theme called Glow for the editor. Even without any kind of tree shaking and while embedding all of the icons in the bundle, the result is about half the size from when I was using Ant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority
Projects
None yet
Development

No branches or pull requests

1 participant