08: Optimizing for Production - Tailwind CSS v2.0: From Zero to Production

Поділитися
Вставка
  • Опубліковано 23 жов 2024

КОМЕНТАРІ • 113

  • @ashutoshbw
    @ashutoshbw 3 роки тому +86

    What an ingenious way to working with CSS! I've watched this whole series and enjoyed every moment of it. Thank you Simon for your effort to put the essentials so nicely. I'm now going to use tailwindcss wherever I can. I'm so excited...

    • @TheRafark
      @TheRafark 3 роки тому +3

      Been using it for a few days and it’s as good as it sounds.

  • @donmikkodanm.olmillo8154
    @donmikkodanm.olmillo8154 3 роки тому +27

    Please extend this series with navbars and other essential UI components! Love the series and great tutorial especially for beginners, thank you for this :)

  • @shekharpatil02
    @shekharpatil02 3 роки тому +2

    Just completed the tutorial. It was awesome now I will start moving my bootstrap website to TailwindCSS. Big Thanks!!

  • @davidalsbury5980
    @davidalsbury5980 3 роки тому +2

    Excited to work with CSS for the first time in a long time. Love the workflow and optimizations. Looking forward to using Tailwind in my next project. The flow of this tutorial is quick and to the point, but you covered all of my production concerns in the process. Great job!

  • @sanketss84
    @sanketss84 3 роки тому +2

    This 9 part series has been a great introduction to tailwind and learned a lot thanks Simon for these videos they are helping me get acquainted with the limitless possibilities that tailwind can provide when it comes to designing user interfaces.

  • @VaidasBagdonas
    @VaidasBagdonas 3 роки тому +3

    The purge is the last item I was eagerly waiting as a cherry on the top! Thanks for the amazing series. Gonna jump into Tailwind and try to revive my CSS skills !

  • @PavanKumar-tv2ls
    @PavanKumar-tv2ls 3 роки тому +2

    Having amazing docs as well as amazing video tutorials, man you guys are every developer's dream. 🥺

  • @NiaNic425
    @NiaNic425 Рік тому +1

    I'm officially a tailwind fan! Amazing series, i had trouble installing vite at first since its different now maybe with the updates. But I was able to push through just by referring to the tailwindcss documentation install guide. Really high quality course thanks a lot Simon!

  • @ApionDesigns
    @ApionDesigns 3 роки тому +7

    3 days seeing these tutorials, going good so far.

  • @cole_mcconnell
    @cole_mcconnell 2 роки тому +1

    Thank you for this insanely good tailwind course, super good value for time, couldn't find any other resources even close to the quality of this!

    • @simonswiss
      @simonswiss Рік тому

      You're welcome - super glad to hear that!

  • @J90JAM
    @J90JAM 3 роки тому

    This is the type of thing that most tutorials never cover. I get that companies use different build tools etc. and you can't cover them all, but having some idea how one or two work is really helpful.

  • @drujas
    @drujas 2 роки тому +2

    De lejos... la mejor serie para ingresar al mundo de Tailwind que he visto.

  • @cintron3d
    @cintron3d 3 роки тому +3

    This is fantastic and because of the modular utility approach I'll bet the css ends up being WAY smaller than anything I've done following the BEM method

    • @simonswiss
      @simonswiss 3 роки тому +2

      Yep, that's my experience as well 👍 - and those repetitive CSS classes compress extremely well, both in the HTML and the CSS 🎉

  • @jasonvictor1798
    @jasonvictor1798 2 роки тому +1

    Amazing. I've been using styled components all of last year but this is really compelling to replace it with tailwind CSS!

    • @SowedCastelli
      @SowedCastelli 2 роки тому

      The best part is, you wouldn't even have to choose. You would augment styled components with the awesomeness that is tailwind with something like "twin.macro". It's been 7 months, I guess you already know this by now :D. In other news, Simon is a "god" tutor. Thanks for the series.

  • @PokeBowl82
    @PokeBowl82 3 роки тому +2

    Those tuts were spot on, nice build up and very useful

  • @GharKiKheti
    @GharKiKheti 3 роки тому

    Commenting here just to help UA-cam algorithm, its best tutorial by creators themselves. 😍😍

  • @ThaRealIansanity
    @ThaRealIansanity 2 роки тому

    Great course! Between your teaching and the docs I was able to do this with tailwindcss 3 without pulling my hair out. Thank you!

  • @BaileySimrell
    @BaileySimrell 2 роки тому +2

    Would love to see this series extended, or another similar one!

  • @froggologies
    @froggologies 3 роки тому

    This video is the cherry on top for this series. Thank a lot! ❤️

  • @arniep0123
    @arniep0123 3 роки тому +3

    Awesome tutorials. Thanks so much for taking the time.

  • @mhemaungthuwin7916
    @mhemaungthuwin7916 3 роки тому

    When I started learning react, I'm really concerned about what should I use for design. This video series teach me not only about the framework, but also the design. Thank you so much for your videos. (-: Nice :-)

  • @lscodeschool957
    @lscodeschool957 3 роки тому

    I think everyone have said it all. This is super good and inviting. Great work man. Tailwinds here we go...

  • @eim6741
    @eim6741 2 роки тому

    Really going to need to see the VSCode settings / plugins you use, really beautiful!

  • @chiboub
    @chiboub Рік тому

    I really enjoyed the playlist, great work!

  • @todorkonjevic7483
    @todorkonjevic7483 3 роки тому +1

    Loved every second of this series! Thanks a lot!

  • @elliotho3015
    @elliotho3015 2 роки тому

    Brilliant Tutorial! Hope Tailwind CSS v3 tutorial is coming soon :D

  • @henryherrera5043
    @henryherrera5043 3 роки тому

    Thank you, Simon! Very complete tutorial. There are multiple frameworks or libraries for the front-end and now it's difficult to decide which one to use haha. Tailwind CSS is a very interesting option. I'll see when will be the time to use it in a real project. Cheers! God bless

  • @damagee8141
    @damagee8141 3 роки тому +3

    Let's say you have more than one page. For example a homepage and an about page. Is there a way to configure PurgeCSS so that it doesn't include the classes used in about-us on the homepage and the other way around?
    Obviously with two pages this wouldn't be necessary but if you had thousands of pages that all have their own classes your css file size would slow down the loading of any of the pages quite a lot.

    • @simonswiss
      @simonswiss 3 роки тому +8

      Great question! Purge CSS and Tailwind don't support "code splitting" or chunking per page at this point... but to be fair, it's actually **really hard** to get your CSS to be bigger than ~8kb after purging. Pretty confident 8kb of CSS will never be the thing that slows down the loading of your page 👍

  • @ManadayMavani
    @ManadayMavani 3 роки тому

    Thank you for the fantastic and quick to follow tutorials!

  • @salesforcetroop
    @salesforcetroop 3 роки тому +1

    Excellent Work Team !!!

  • @vanngoctan34
    @vanngoctan34 3 роки тому

    Thank you for sharing the tutorial. Hope the best for you and your team.

  • @samimaxhuni
    @samimaxhuni 3 роки тому

    Awesome tutorial, I think its enough for to understand and to start to develop with a TailwindCSS, Great Job

  • @lh536
    @lh536 3 роки тому +1

    I have learned a lot viewing this video... Thanks Simon! I still have a lot to learn about how to configure TailwindCSS in order to get more from it. I have a question, it's posible to use TailwindCSS with SvelteJS?

  • @Hurtwolf
    @Hurtwolf 3 роки тому +1

    Totally didn't know thit about Purge. Thank you for this! :)

  • @simonswiss
    @simonswiss Місяць тому

    Heads up, none of the purge thing is relevant in Tailwind CSS v3 and later. The Just-in-Time engine never generates unused Tailwind classes to begin with. You can ignore this step completely - but the "dynamic classes" approach still stands!

  • @tsioryfitiavanaanhykrishna6992
    @tsioryfitiavanaanhykrishna6992 3 роки тому

    Nice explanation and very concise videos ! I'll definitely use this framework !

  • @andersonchong7625
    @andersonchong7625 3 роки тому

    Thank for this series and your great explanation. Appreciate you for putting out free contents.

  • @drewfoster1033
    @drewfoster1033 3 роки тому +1

    These tutorials are fantastic, thank you

  • @范范-z8s
    @范范-z8s 2 роки тому

    Love this series, so cool

  • @oliver_ai
    @oliver_ai 2 роки тому

    Great series! I loved it!
    Also thanks to it I discovered Vite and got to learn about esbuild

  • @master0fnone
    @master0fnone 3 роки тому

    Thank you for the great intro!

  • @a7medalyousofi
    @a7medalyousofi 3 роки тому +1

    Great CSS Framework,
    Could you please share your vscode extentions and theme, I really like it.

  • @DiazGunturFebrian
    @DiazGunturFebrian 3 роки тому

    i've finish the playlist. I like the way you explain it, thank you for the tutorial.

  • @JoseGarcia-vr8mx
    @JoseGarcia-vr8mx 2 роки тому

    This tutorial is so good. Thank you so much for sharing this content! Keep it up.

  • @max_mrtnv
    @max_mrtnv 2 роки тому

    That was awesome! Thank you!

  • @edgarasben
    @edgarasben 3 роки тому

    Great tutorial series! I learned a bunch!
    I just have a few questions:
    1. How can I see the filesize info at 2:52?
    2. How do you run the production build in the browser without running the development server? (7:37)

    • @eihab
      @eihab 2 роки тому +1

      2:52 That's a little VSCode extention called "filesize"

  • @eskimo6097
    @eskimo6097 3 роки тому

    Amazing video series, thank you!

  • @ulvidamirli2758
    @ulvidamirli2758 3 роки тому

    Thank you, that was very helpful and easy-to-follow. But what about autoprefixer? Any tutorial doing these things with postcss would be helpful as well.

  • @theogilardo7180
    @theogilardo7180 3 роки тому

    Great video, thank you !

  • @AstroDeeptej
    @AstroDeeptej Рік тому

    for those of you who struggled to not get the styles to be applied for the index from dist, just navigate to the dist folder and run 'npm run dev'

  • @creabikuix6019
    @creabikuix6019 3 роки тому +2

    thank you a lot

  • @mahdisoultana4926
    @mahdisoultana4926 2 роки тому

    Thank you very much for these tutorials, it's really helpful

  • @kritsatornsaengweang715
    @kritsatornsaengweang715 3 роки тому +2

    This is so much great !

  • @byting_my_steez
    @byting_my_steez 3 роки тому

    Hello, thanks for the great tutorials. I have been going through them without a hitch but, finally, I ran into a problem at the beginning of this lesson. I just added the build: "vite build" script and purge key. The page is working fine in my dev environment, but when I try to open the index.html file in my dist folder, it only renders as a white screen. Do you have a clue as to why this is happening? Dumb question...how are you opening the dist/index.html? Better yet, what is the url of the dist/index.html? It's not visible in the video. Thx!

  • @Aakash-lz5ou
    @Aakash-lz5ou 3 роки тому

    All videos are good but Last 2 videos are very awesome. No one used these useful features on NextJS Tutorials.

  • @rolandliwato4337
    @rolandliwato4337 3 роки тому +2

    Hi ! I love your content ! I just got into building stuff with Tailwind CSS after seeing your tutorials. I've tried to build a small game web app that follows the same configurations as you have in this playlist. Unfortunately, while everything works fine in my local development server, when I run `npm run build`, vite only picks up the HTML and CSS files but ignores my script files and other assets. Would you be kind enough to guide me on how to proceed ? I've done some Google searching but I can't seem to find any solution so far.

    • @J90JAM
      @J90JAM 3 роки тому +1

      Same here man, all the articles and videos are all about if you're using React or Vue. Did you manage to find anything? I'm at a loss as to why it isn't working, I've triple checked everything that people have suggested, but no change 😑

    • @rolandliwato4337
      @rolandliwato4337 3 роки тому

      @@J90JAM Nope, nothing. Sorry.

    • @J90JAM
      @J90JAM 3 роки тому

      @@rolandliwato4337 Ah damn, thanks for replying anyway.

  • @faythe03
    @faythe03 3 роки тому

    How would you go about delivering a separate CSS file per page? For example one file for the homepage and another for a blog page. And if some templating language is used (e.g. the homepage template includes other small sub-templates). Can we reduce CSS in such scenarios? I'd appreciate any help!

  • @fabiothebest89lu
    @fabiothebest89lu 3 роки тому +1

    I loved the tutorials. Thanks :) I'll try Tailwind for my next project :) I also hope I can learn React :)

  • @gurpbiedurpbiedurp8811
    @gurpbiedurpbiedurp8811 3 роки тому +1

    Thanks a lot, now get tailwind a lot better ;)

  • @rick9348
    @rick9348 3 роки тому +2

    How do you add a cursor to the next match of current selection on vscode? Is it an extension?

    • @francisudeji209
      @francisudeji209 3 роки тому +1

      When you highlight a text, use CTRL + D or CMD + D(on mac) to highlight the next text that matches

  • @josuebarros-desenvolvedorw2490
    @josuebarros-desenvolvedorw2490 3 роки тому

    Nuxt's tailwind setup comes with PurgeCSS right?

  • @sanathkumar1698
    @sanathkumar1698 2 роки тому

    More videos coming or is it already out as course? Please give some update!

  • @djubadjuba
    @djubadjuba 3 роки тому

    The result generated by vite build is looking different than the one of vite dev. Any ideas of areas to look at?

  • @tiltMOD
    @tiltMOD 3 роки тому

    This is how I want to do front-end from now on 🤩

  • @goncalodumas
    @goncalodumas 3 роки тому

    Great tutorial. Thanks!

  • @soultouchingsongs
    @soultouchingsongs 4 дні тому

    Super cool☃

  • @patrickholzer8522
    @patrickholzer8522 3 роки тому +1

    When I enter: "npm run build" I get this: "Error: Could not resolve entry module (index.html)." - I followed the video instructions. What am I doing wrongly? Thank you in advance.

    • @HomeCode
      @HomeCode 3 роки тому +2

      Hi Patrick, have you checked your file path carefully? Perhaps you just need '/index.html'?

    • @patrickholzer8522
      @patrickholzer8522 3 роки тому

      @@HomeCode Thank you!

  • @AhmedAli-jx9ie
    @AhmedAli-jx9ie Рік тому

    I use vue3 with vite and the css file already small without doing anything

  • @raitasorin
    @raitasorin 6 місяців тому

    Wooow I love it 🎉

  • @UBLAunripped
    @UBLAunripped 3 роки тому

    Thank you that was a great help to us.

  • @poolmillions
    @poolmillions 2 роки тому

    So... how does one go about running the vite server with the production build? I can't seem to find any info on that

  • @wmafendi
    @wmafendi Рік тому

    Thanks

  • @douglasDGmarques
    @douglasDGmarques 3 роки тому

    amazing tutorial, thank you

  • @ranibenmahmoud6298
    @ranibenmahmoud6298 3 роки тому

    i love it! it's just amazing...

  • @surij8376
    @surij8376 2 роки тому

    size = "32" would have also worked right?.

  • @astorayestas7885
    @astorayestas7885 3 роки тому +1

    nice job thanks

  • @silverdr
    @silverdr 3 роки тому

    Could you please let us know what set of extensions you use for VS-Code?

  • @nicholassingh138
    @nicholassingh138 3 роки тому +1

    what did he do to see the file size?

  • @kshitijkhot1401
    @kshitijkhot1401 2 місяці тому

    btw which font you are using in your editor?

  • @mibaatwork
    @mibaatwork Рік тому

    Is there any way in tailwind css to obfuscate my css classes in html so no one can just copy my design from the page? I used sveltekit and vite.

  • @princepatrickc4611
    @princepatrickc4611 3 роки тому

    When and where can you use the "purge" function in tailwind? everytime I'm seeing it on config I can here "stay safe" in my mind lol. any good answer?

  • @cesarrotela
    @cesarrotela 3 роки тому

    Hi, is there a way to remove the numbers generated in the purge files? Example: index.cea983d1 I just want index.css

  • @miguelklappes8525
    @miguelklappes8525 3 роки тому

    When I build it, I keep getting "[vite:build-html] EISDIR: illegal operation on a directory, read - error during build:
    Error: EISDIR: illegal operation on a directory, read
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1"
    Don't know what is it, tried debugging but had no success, anyone knows how this error is produced?

  • @sanketss84
    @sanketss84 3 роки тому

    I somehow ended with a 127 kb css file post build compared to 8kb , tried various options but could not get it down. my code exactly resembled that of Simon but no luck. :(
    I do have latest version of tailwind, purge and vite. anyone else facing this ??

  • @deepakgour2372
    @deepakgour2372 3 роки тому

    when I run "npm run build". it creates a dist folder with file like yours. but when I tried to open live sever, the browser shows blank page. Can you help me resolve this issue?

  • @AnoopD2013
    @AnoopD2013 3 роки тому

    Any idea on how he got that Size, Gzipped, Mime type, Created, Changed table in command line ?

    • @matespinosa09
      @matespinosa09 3 роки тому

      I have the same question 👍🏻

    • @TailwindLabs
      @TailwindLabs  3 роки тому +1

      Here's what I've used here: marketplace.visualstudio.com/items?itemName=mkxml.vscode-filesize

    • @AnoopD2013
      @AnoopD2013 3 роки тому

      @@TailwindLabs Ty for the reply and great tutorials !

  • @kshitijkhot1401
    @kshitijkhot1401 2 місяці тому

    nice videos.

  • @xingbagan6122
    @xingbagan6122 3 роки тому

    tailwind is awesome! I like the video!

  • @mainakdas5819
    @mainakdas5819 3 роки тому

    What's the font that used in this IDE (vscode) ? I like how it process arrow functions as arrow but not => ! Any idea ?

    • @delonnkoh2865
      @delonnkoh2865 3 роки тому +1

      I believe its a paid font - Operator Mono but if u just want programming fonts with ligatures, try Fire Code or Jetbrains Mono (both free but awesome!)

    • @modz9711
      @modz9711 3 роки тому +1

      It's actually dank mono 'f' is very different and not similiar to operator mono..!

    • @mainakdas5819
      @mainakdas5819 3 роки тому +1

      Yeah, it's dank mono

  • @saifazomr7371
    @saifazomr7371 3 роки тому

    @UCOe-8z68tgw9ioqVvYM4ddQ how to "drum roll" and when you created the "dist" folder and for what plz tell us?

    • @pradeepeppa4166
      @pradeepeppa4166 Рік тому

      I think he has selected filesize go to vdo 3:03. Right side you can see a dropdown filesize as selected. Hope it help sorry if I am wrong

  • @NadeemGorsi
    @NadeemGorsi 3 роки тому

    Many Likes to purge!!

  • @alitnk306
    @alitnk306 3 роки тому +2

    kenobi

  • @SeasonSaw
    @SeasonSaw 3 роки тому +1

    Please blink

  • @MirzaMonirulAlam
    @MirzaMonirulAlam Рік тому

    Hi, In Tailwind CSS V3 purge has changed to content. Thus add `content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],`