Support live-reloading of tailwind config #37
Replies: 6 comments
-
Hey daro, yeah that's annoying. I'm working on hot reloading the config right now 👍 From #11:
|
Beta Was this translation helpful? Give feedback.
-
Heads up, I'm putting a freeze on this feature while I tackle adding the features from the new Tailwind release. |
Beta Was this translation helpful? Give feedback.
-
I might be able to help out with this. After doing some digging, would you agree the following is along the right track? Looks like some progress is being made on watching ancillary source files for changes and triggering recompilation (see Babel PR #11741 - Allow plugins to indicate dependencies on random files. The PR hasn't been merged yet and I think it would need to go together with a change to babel-loader so that it could register watched files with webpack and the webpack devserver. |
Beta Was this translation helpful? Give feedback.
-
Hey thanks for picking up the thread on this. |
Beta Was this translation helpful? Give feedback.
-
That PR adds an API to Babel's plugin system, which could be used in twin.macro. Out of the box, it benefits people who use Babel CLI's --watch option. Consumers of Babel (Rollup, Webpack, etc.) would have to write integrations with that PR in order to reap the benefits. |
Beta Was this translation helpful? Give feedback.
-
@ben-rogerson @vedantroy Any updates on this one? I know @vedantroy did a great job on the PR, but it seems the babel team didn't merge yet... |
Beta Was this translation helpful? Give feedback.
-
Right now, I need to restart the webpack dev server whenever I make a change to the tailwind config. It'd be nice if I could make a change in the config, and those changes would be reflected without the need for a server restart. Making the issue here, though I'm not sure if this issue is best fixed someplace else
Beta Was this translation helpful? Give feedback.
All reactions