Skip to content

PostCSS doesn't work with microbundle #7063

@AdrianMrn

Description

@AdrianMrn

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:

  1. 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
  1. Open /src/index.html in a browser & see that the included classes are built
  2. Change the class of the div in index.html to e.g. bg-red-300
  3. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions