-
Hello! I asked that question in Svelt's repo but I got no reply yet so, I'm posting here in case anyone can help. So, I have the following Svelte code and since I added Tailwindcss, the server does not reload properly. To be more precise, updates to CSS files do not appear at all, even when I manually refresh the page. The only exception is if I also update an HTML file. In that case, the changes to HTML are shown and if I refresh the page manually, the CSS is also updated. To summarize:
To use tailwind, I followed the instructions. I don't know if there is something I did wrong. Maybe tailwind does not automatically refresh the "static" directory or what? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It seems you may have followed the instructions incorrectly. If we look at step 4:
However, in your repo, the CSS file is |
Beta Was this translation helpful? Give feedback.
Seems to be working as expected. Changing class names lead to visual changes straight away.
Perhaps unrelated but some errors I saw:
:global()
in the CSS file:static
:zinc
assinc
in+page.svelte
: