'Tailwind css not updating

TailwindCSS was working fine and few hours later my PC got restarted. After that for my practice, I deleted written code from body. Then started coding again and then saw that Tailwind does not update the styles. What could be the reason? Does anyone have solution?



Solution 1:[1]

I was having similar issue, then I ran the Tailwind build script again:

npx tailwindcss -i ./index.css -o ./tailwind.css -w

and then it started working properly

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 xonya