I tried for hours to make the hot reload working with storybook and tailwind but even though I found apparently the solution, I can't make it work...
I tried for two frustrating hours to make it fit but impossible. I always end up with a compilation error:
If I add a tailwind.config.js file at the root of the project, this error disappear but the fix still does not work.
So for now, until nx and storybook grow older together, or before a nice soul finds the solution for me, I'm gonna go the old way and I'll refresh the storybook pages each time JIT adds a new class to the project.
I tried for hours to make the hot reload working with storybook and tailwind but even though I found apparently the solution, I can't make it work... I tried for two frustrating hours to make it fit but impossible. I always end up with a compilation error:
If I add a
tailwind.config.js
file at the root of the project, this error disappear but the fix still does not work.So for now, until nx and storybook grow older together, or before a nice soul finds the solution for me, I'm gonna go the old way and I'll refresh the storybook pages each time JIT adds a new class to the project.