P粉3981178572023-08-27 12:35:52
I think of Nuxt.js as a framework for server-side rendering like NextJs for React. This way, all data and HTML is rendered by the Nuxt server, which sends the generated "html/css" bundle to the client containing only the css classes that you use in your code. So I would say it's normal to rebuild every time you want to see changes to the css class you just added.
If you want to see the changes directly without rebuilding each time (such as in the browser dev tools to easily write css classes), I recommend linking to the HTML root file (index.html), complete with the Tailwind CSS table. You can find a version on the tailwind documentation page here: https://tailwindcss. com/_next/static/css/b606771d290f9908.css
You can then delete the link at the end of your development work.