Watch for input file as webpack\postcss plugin #13631
-
I have tailwind running in two modes
First approach is very slow as it parses all source code While second approach has issue when I run it as part of webpack dev server, I don't want to run tailwind CLI with "-watch" as well, cause it will require to run two processes - tailwind and webpack in different terminals. Also I tried it, and it takes very long as well, probably, because it doesn't just re-compile input file, but also parses all source code again |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For the first approach, consider checking if you have overly broad For the second approach, consider checking you have |
Beta Was this translation helpful? Give feedback.
-
Thanks for response. I will check how to optimize first approach, but second is my preference However, i included not input index.css, but output styles.css of the CLI into webpack before. |
Beta Was this translation helpful? Give feedback.
For the first approach, consider checking if you have overly broad
content
patterns.For the second approach, consider checking you have
import
ed theindex.css
into Webpack module graph.