-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: add built-in PostCSS and Tailwind support #5229
Conversation
🦋 Changeset detectedLatest commit: a0dd10e The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
incremental: false, | ||
splitting: false, | ||
stdin: undefined, | ||
outfile: undefined, | ||
outdir: outfile ? path.dirname(outfile) : outdir, | ||
entryNames: assetNames, | ||
outdir: config.assetsBuildDirectory, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed so the build is consistent between browser and server builds. With the original code, the server and client get different source maps which results in multiple, differing copies of the same styles being generated for a single Remix build. This is because the hash of the source map is in the generated CSS file since it contains a comment with the file name. (This was a tough one to track down!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome. A couple minor nits on docs and comments otherwise, but no blockers. Stoked for this 👍
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
You appear to be mistaken, kind bot. 😀 |
Ah, better go check out what's going on in meatspace |
the kind, but sometimes mistaken bot has received a stern talking to and promises to not do it again, i believe him. #5342 |
Closes: #5085
Long term these features are designed to be enabled by default, but for now they're behind feature flags.
These two features are designed to be completely independent from a Remix perspective:
Testing strategy:
Integration tests have been provided for both PostCSS and Tailwind support, in both cases being used with regular style sheets, CSS Modules, CSS side-effect imports and Vanilla Extract.