How To Install Tailwind CSS In Laravel and Mix

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • 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... .

ความคิดเห็น • 24

  • @immense_dreamer
    @immense_dreamer 3 ปีที่แล้ว +3

    Nice video, quick and helpful. Thanks!

    • @esco_tech
      @esco_tech  3 ปีที่แล้ว

      Thank you, appreciate the comment and the support!

  • @khanthmuu6364
    @khanthmuu6364 3 ปีที่แล้ว +2

    Thank you for this one.
    It helps me a lot.

    • @esco_tech
      @esco_tech  3 ปีที่แล้ว

      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!!!

  • @mamusthafa6
    @mamusthafa6 2 ปีที่แล้ว +1

    Nice video, very useful for beginners. Thank you

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว

      Thanks for the kind words and support!

  • @sabermrabt5775
    @sabermrabt5775 3 ปีที่แล้ว +2

    Thank you for the vid , hope it does well !

    • @esco_tech
      @esco_tech  3 ปีที่แล้ว

      You’re welcome and thank you for your comment!!!!

  • @joshuaendaya7174
    @joshuaendaya7174 3 ปีที่แล้ว +1

    thanks bro its helpful

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว

      Thank you for the kind word and support my friend!

  • @rejuscerniauskas1399
    @rejuscerniauskas1399 3 ปีที่แล้ว +1

    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??

    • @esco_tech
      @esco_tech  3 ปีที่แล้ว +1

      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!

  • @naty8530
    @naty8530 3 ปีที่แล้ว +2

    It help me a lot thanks very much ,can you share us the the table form please??

    • @esco_tech
      @esco_tech  3 ปีที่แล้ว

      Glad to hear it helped! Here's the table.
      gist.github.com/nickescobedo/04e85dafbd82b23eba0817436c7eead9

  • @murtazanoori6414
    @murtazanoori6414 2 ปีที่แล้ว

    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

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว

      That's strange did you receive any errors when it was building or loading the page?

  • @adeodatusludan
    @adeodatusludan 2 ปีที่แล้ว

    Why every class or change that I apply to my blade file does not take place with refreshing of my page unless I run "npm run dev comand"?

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว +1

      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!

  • @olivieromanga6487
    @olivieromanga6487 2 ปีที่แล้ว

    merci

  • @ammarbahtiarasli
    @ammarbahtiarasli 2 ปีที่แล้ว

    Laravel 9 not found webpack.mix.js ;(

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว

      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.

  • @xBlixon
    @xBlixon 2 ปีที่แล้ว

    npm install -D tailwindcss postcss autoprefixer :)

    • @xBlixon
      @xBlixon 2 ปีที่แล้ว

      npx tailwindcss init

    • @esco_tech
      @esco_tech  2 ปีที่แล้ว

      Thanks for following up :)