-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
What version of Tailwind CSS are you using?
3.0.13 (latest)
What build tool (or framework if it abstracts the build tool) are you using?
- postcss@8.4.5 (latest)
- microbundle@0.14.2 (latest)
- microbundle uses rollup@2.63.0 (latest)
What version of Node.js are you using?
16.13.2
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/AdrianMrn/microbundle-tailwindcss-watcher-test
Describe your issue
As per @RobinMalfait's request in this PR, we've run into an issue where, after the Tailwind watcher was removed, our stack (bundling with Microbundle) doesn't update the css automatically anymore.
Microbundle is a bundler that runs on Rollup but requires minimal configuration.
Reproduction steps:
- Set up the (minimal) reproduction repo
git clone https://github.com/AdrianMrn/microbundle-tailwindcss-watcher-test
cd microbundle-tailwindcss-watcher-test
yarn install
yarn dev
- Open
/src/index.htmlin a browser & see that the included classes are built - Change the class of the
divin index.html to e.g.bg-red-300 - Refresh the page & see that the new class was not built
When locking tailwindcss to 3.0.8 (the last version to have TAILWIND_MODE=watch), this exact setup does work and new styles are built as expected.