Setting up Tailwind CSS in a Laravel Project
Вставка
- Опубліковано 7 вер 2024
- In this video, I'll show you how to set up Tailwind CSS in a new Laravel project.
Enjoying my teaching style? I'm creating an independent Tailwind CSS course called Pro Tailwind. Check it out at protailwind.com ❤️
wow, great content, easy to understand
Good one. Quick and easy
Good stuff 👍
Thank you!
Thanks ! I wanna know your vs code setup config. I love it.
Worked for me !!!! Thank you bro 😍🤩🥰
Nice Explanation bro
awesome
Its doesnt need to run the npm?
sir please create a video on how can we setup Tailwindcss with PHP or how can we integrate Tailwindcss with PHP
The Tailwind setup is sort of independent from PHP - you'll need either a tool that supports PostCSS (Vite, Webpack, ...), or simply use the Tailwind CLI: tailwindcss.com/docs/installation
Do i need always to run npm run watch in order to use Tailwindcss in Laravel?
not working bcz laravel breeze tailwind not working on welcome file, it works only on login/register/dashboards
So whenever I try installing tailwind css it gives me error EPERM. Is there a way to solve it ?
help, npm run watch is not working for me
I dont have webpack.mix.js...
Edit: Nvm I fixed it.
Yeah, since this video Laravel has switched from webpack to Vite.js 👍
what if there's no webpack and only vite.js it does effect?
Vite will take care of processing PostCSS for you. Here's the official guide on setting up Tailwind CSS with Laravel using Vite: tailwindcss.com/docs/guides/laravel
thanks i was stuck here
How do you hot reload the browser?
install Laravel Breeze... run artisan serve and npm intsall && npm run dev done
Somehow webpack.mix.js file does not exist in my project. I'm new to PHP laravel
I think Laravel has switched to using Vite instead of webpack (and therefore the webpack.mix.js file).
You can check this guide to setup Laravel with Vite: tailwindcss.com/docs/guides/laravel
@@simonswiss HI ! I fixed my problem yesterday! And thanks !
:) I'm a new grad trying to get first job and damn it's hard