Skip to content

Inline @import rules in tailwindcss/index.css at publish time for better performance#13233

Merged
RobinMalfait merged 9 commits into
nextfrom
feat/inline-css-at-build-time
Mar 13, 2024
Merged

Inline @import rules in tailwindcss/index.css at publish time for better performance#13233
RobinMalfait merged 9 commits into
nextfrom
feat/inline-css-at-build-time

Conversation

@RobinMalfait
Copy link
Copy Markdown
Member

This way none of the tools using @import "tailwindcss"; have to resolve imports at "runtime" because it will already be inlined when it's published.

This does increase the bundle size of the tailwindcss package, but it's still going to be a very small package.

This implementation is fairly simple right now, because we don't have
to worry about resolving folders or modules since we don't use them.
Comment thread scripts/pre-publish-optimizations.mjs Outdated
Comment thread CHANGELOG.md Outdated
@RobinMalfait RobinMalfait merged commit 9fc5aa1 into next Mar 13, 2024
@RobinMalfait RobinMalfait deleted the feat/inline-css-at-build-time branch March 13, 2024 21:26
@RobinMalfait RobinMalfait changed the title Inline the tailwindcss/index.css contents at publish time Inline @import rules in tailwindcss/index.css at publish time for better performance Mar 13, 2024
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.

3 participants