Skip to content

Size of an (preact) app vs used libraries? #3639

Answered by rschristian
tkassila asked this question in Q&A
Discussion options

You must be logged in to vote

does the app size contains all code of preact-material-components or only used dialog and card components code?

There's no way of us knowing that. Whether unused portions can be removed is up to your bundler and perhaps method of use.

For all major bundlers there are bundle visualizers, which you can use to look into your bunldes to see what's there. Using one of these you should be able to take a peek and determine whether or not only the dialog and card components are being used.

Does the situation (=how much code will taken with a app) is the same kind with all js libraries etc? (The app size is not "normalized" into minimum code).

Sorry, I don't follow.

That being said, preact-mat…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tkassila
Comment options

@rschristian
Comment options

@tkassila
Comment options

@developit
Comment options

Answer selected by tkassila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants