Learn how to install Tailwind CSS in a fresh installation of Laravel and Mix. For instructions on using Vite please see my other video: • How to install Tailwin... .
You are very welcome and I'm happy the video was useful! You are my very first comment ever and it's greatly appreciated you took the time to say something nice!!!
For some reason I can't get all tailwindcss classes, when I go to public/css/app.css it only contains 700 lines of code, pretty sure it should contain more than that. Any tips on how to get all tailwinds classes??
That’s by design. Tailwind only generates the necessary css based on the utility classes your using. If you add classes to any of your files you need to run npm run dev or npm run prod or my favorite npm run hot and it will continuously run waiting for changes and automatically generate the new css every time you change something. Hopefully that helps!
Try npm run watch or npm run hot. Those two commands may help. Watch will rebuild the assets any time there is a change. Hot will rebuild the assets and refresh your page for you. Hope that helps!
Hi Thank you for a great video, however i followed all your steps and installed all the components and everthing but my tailwind dosent work , i mean when i apply the CDN link it works, but without it. it dosent work at all
Are you using the latest version of Laravel? Laravel within the past couple of weeks is now using Vite. I need to make a new video showing how to install with Vite.