Skip to content

Fix rebuilds when editing imported CSS files#14561

Merged
RobinMalfait merged 3 commits into
nextfrom
fix/watch-imported-css-files
Oct 1, 2024
Merged

Fix rebuilds when editing imported CSS files#14561
RobinMalfait merged 3 commits into
nextfrom
fix/watch-imported-css-files

Conversation

@RobinMalfait

Copy link
Copy Markdown
Member

This PR fixes an issue where importing other CSS files, then changing those CSS files didn't trigger a rebuild. This PR fixes that by making sure that the imported CSS files are properly watched.

This PR also adds some integration tests for @tailwindcss/postcss, @tailwindcss/vite and @tailwindcss/cli to make sure this works as expected.

@philipp-spiess philipp-spiess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice re. test upgrades

Comment thread packages/@tailwindcss-node/src/compile.ts
These tests make sure that changing an imported stylesheet results in a
full rebuild by overriding some `@theme` values.
@RobinMalfait RobinMalfait force-pushed the fix/watch-imported-css-files branch from f66a4b4 to 590304e Compare October 1, 2024 11:45
@RobinMalfait RobinMalfait enabled auto-merge (squash) October 1, 2024 11:46
@RobinMalfait RobinMalfait merged commit 30fbc2c into next Oct 1, 2024
@RobinMalfait RobinMalfait deleted the fix/watch-imported-css-files branch October 1, 2024 11:52
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.

2 participants