Does postcss listen for dir-dependency messages in watch mode? #1756
Unanswered
nareshbhatia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running postcss in watch mode. One of the plugins that it's running is
tailwindcss. I know that tailwindcss sendsdependencyanddir-dependencymessages when its dependencies change. However, I am not seeing postcss being retriggered when they actually change. What am I missing?Here's my minimal repo: https://github.com/nareshbhatia/tailwindcss-storybook
Here are the relevant scripts in package.json. Running npm run dev starts up storybook, the bundler and postcss in watch mode:
{ "scripts": { "dev": "run-p bundle generate-css storybook", "bundle": "tsup src/index.ts --format esm,cjs --dts --external react --watch", "generate-css": "postcss src/styles/tailwind.css -o public/main.css --watch", "storybook": "start-storybook -p 6006" } }For further details, please see this discussion in tailwind repo.
Beta Was this translation helpful? Give feedback.
All reactions