Skip to content
Discussion options

You must be logged in to vote

Re: 1 we have a whole section explaining this design decision: https://stylexjs.com/docs/learn/thinking-in-stylex/#one-small-file-over-many-smaller-files

TLDR; With atomic CSS, we can generally ensure that the singe CSS file never gets too big.

isn't the big bundle size of CSS is major concern

No, because it's not a big bundle at all. It's a single small bundle.


In the context of Webpack, I understand that CSS is bundled with JavaScript by default.

This is not the case. Our Webpack plugin (and also NextJS) generates a separate CSS file.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AdarshJais
Comment options

@nmn
Comment options

nmn Feb 15, 2024
Collaborator

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