PostCSS Crash Course

Sdílet
Vložit
  • čas přidán 18. 04. 2024
  • In this video, we will talk about what PostCSS is, set it up and show you how to use some of the popular plugins such as postcss-preset-env, precss, postcss-import, autoprefixer and more.
    💻 Code:
    github.com/bradtraversy/postc...
    ⭐ All Courses:
    traversymedia.com
    💖 Show Support
    Patreon: / traversymedia
    PayPal: paypal.me/traversymedia
    👇 Follow Traversy Media On Social Media:
    Twitter: / traversymedia
    Instagram: / traversymedia
    Linkedin: / bradtraversy
    Timestamps:
    0:00 - Intro
    0:47 - Slides
    6:48 - Docs
    8:14 - Setup & Install
    9:42 - Build & Watch Scripts
    12:40 - Autoprefixer & Plugin Config
    16:17 - postcss-preset-env
    18:05 - Custom selectors, media, nesting
    21:29 - PreCSS
    24:13 - PostCSS Import & File Structure
    28:42 - PostCSS Assets
    31:52 - CSSNano
  • Věda a technologie

Komentáře • 75

  • @spreadItWide
    @spreadItWide Před rokem +81

    Why's their logo look like it's summoning demons??

  • @bogdanlupu3679
    @bogdanlupu3679 Před rokem +11

    Thanks Brad as usual your tutorials are top notch.

  • @monles2352
    @monles2352 Před rokem

    Hi, Brad, Your free courses on youtube channel are aluable kindly,
    Before I have enrolled your courses, I've alreay followed your channel for months. I am so impressed by the value of content, also your effort put in it!
    Thank you for keep giving us so many good educational videos for free.

  • @entrepreneurzee
    @entrepreneurzee Před rokem +8

    Here for all the tutorials, big thumbs up.

  • @paulthomas1052
    @paulthomas1052 Před rokem +1

    Excellent tutorial about PostCSS plus some previews of next gen CSS stuff.

  • @littleoddboy
    @littleoddboy Před 3 měsíci

    for those wants learn these small concepts and stuffs like PostCSS, like me, this video was very very helpful. tnx man. stay alive.

  • @almhdy24
    @almhdy24 Před rokem +1

    New great tutorial.
    Thank you 💜

  • @walidallaf6057
    @walidallaf6057 Před rokem

    Thanks bro ❤️
    Another awesome tutorial 🔥

  • @petarkolev6928
    @petarkolev6928 Před rokem

    Ah, damn, right on time :D I just needed such course, thanks!!!

  • @kirkpatrikolis273
    @kirkpatrikolis273 Před rokem +1

    thanks brad waiting for this one ♥️

  • @parvezmosharraf6522
    @parvezmosharraf6522 Před rokem

    Thank you so much sir I'll be waiting for it so along.

  • @motsi9593
    @motsi9593 Před rokem +1

    Thank you man. Great deep stuff.

  • @cipherlofi6453
    @cipherlofi6453 Před rokem +1

    thanks brad, it is on time i am messing with postcss now.

  • @aneliayacheva6671
    @aneliayacheva6671 Před rokem

    Now I know why I used to watch your videos so much

  • @gambomaster
    @gambomaster Před rokem

    Thank you Brad. 🙏

  • @aram5642
    @aram5642 Před rokem +2

    Would you kindly consider making a video about your preferred way to build a web app that uses some sort of calendar/cron--based mechanism (eg. sending reminder emails at specific dates, intervals)? It would be interesting to see what kind of stack you'd use.

  • @webWithMe
    @webWithMe Před rokem +1

    Cool course👍

  • @MohammedAbdulMohaiman
    @MohammedAbdulMohaiman Před rokem +1

    Awesome... Thanks 💙

  • @rickythegermanshepherd5438

    Great tutorial brad ♥️ Please make a video on react table v8.. with features like sorting, global filter, column filter, grouping, pagination etc. All react table tutorials are for v7.. but v8 is much more different than v7

  • @indaneeydesign165
    @indaneeydesign165 Před rokem

    Thank you Brad

  • @flojj
    @flojj Před rokem

    Well, thanks to you I just learned that nesting is now possible in native CSS...... but when I looked it up on the web, apparently as of today it is not implemented on any browser yet lol I guess we shouldn't using nesting in vanilla CSS at all at this point.
    Anyway regarding Post CSS, it was really clear and interesting so thank you :D

  • @jssecrets
    @jssecrets Před rokem

    Thank you mane!

  • @chanmyaemaung
    @chanmyaemaung Před rokem +1

    Awesome!!!

  • @Bawaromerali
    @Bawaromerali Před rokem

    Thanks man.

  • @jeffsuddaby4788
    @jeffsuddaby4788 Před rokem

    Very nice. Just what I needed! One issue: The "precss" page on NPM says the package is deprecated. Any alternatives?

  • @wisdomelue
    @wisdomelue Před rokem

    so many packages installed 💀, would stick to sass then💀😂😂
    thanks as always for the tutorial brad💯🙏🏽

  • @sourabhshukla8625
    @sourabhshukla8625 Před rokem

    thanks brad

  • @herosimobiko
    @herosimobiko Před rokem

    Never knew that PostCSS is as powerfull as this 😄

  • @champorado2131
    @champorado2131 Před rokem

    Wow nice one.

  • @glitchspark1663
    @glitchspark1663 Před rokem +3

    What a coincidence. I was just about to learn postcss.

  • @lifeisbeautifu1
    @lifeisbeautifu1 Před rokem

    Thank you

  • @nvrp
    @nvrp Před rokem

    Thank you!!! Recently discovered your courses on Udemy and then found your videos on CZcams as well! Very very informative! To the point! So, i can learn very useful stuff, very quickly! Thank you!👍🫡

  • @carlosz1858
    @carlosz1858 Před rokem

    Hey Brad, great video, but i've got a problem with precss, i installed and put in on postcss.config an then run it but the input file thinks its an error, can you help?

  • @Whovianpancake
    @Whovianpancake Před rokem +1

    Hello Brad, precss is deprecated, can you tell me how I can workaround this as I am very used to sass variables and would love to work with them using PostCSS. It would seem precss is dead on github and won't upgrade to the new version of PostCSS.

  • @akam9919
    @akam9919 Před rokem

    Are you spying on me, because I was thinking about learning about PostCSS...?
    Regardless, I'm happy for this!

  • @luishenriqueandradepellizz680

    Brad, give us a tutorial using nextJs13. Thanks ❤️

  • @Tony.Nguyen137
    @Tony.Nguyen137 Před rokem

    Are there also plugins for javascript file to optimize it?

  • @AnDi-tx2xh
    @AnDi-tx2xh Před rokem

    Does any one know the name of the font Brad is using? :) I've been looking all over the place for it and can not find it :) Thankyou ^^

  • @blxckmage
    @blxckmage Před rokem

    hey brad, is it possible if you do chakraui course? thanks

  • @shauntonesify
    @shauntonesify Před rokem +1

    @import for sass is deprecated no? In favor of @use? Or am I too early 😂

  • @aashishpudasaini4418
    @aashishpudasaini4418 Před rokem

    👍

  • @armanahmed4806
    @armanahmed4806 Před rokem +1

    Hi Brad what is your next course?? What about Modern Javascript and Vue js?

  • @zedshockblade7157
    @zedshockblade7157 Před rokem

    Next Js 13 please!

  • @Venkatesh-vm4ll
    @Venkatesh-vm4ll Před rokem +1

    Aws multiple way to deploy mern stack, please make a video

  • @OnePiece_Fandom
    @OnePiece_Fandom Před rokem +1

    My css is working on my style.css but in my input.css there is yellow lines and error on my css code but it's working how can I remove them ?

  • @mohamedabdulla8097
    @mohamedabdulla8097 Před rokem

    Waiting for you nextjs 13 upgrades

  • @AmodeusR
    @AmodeusR Před rokem

    In the PostCSS config from TailwindCSS config they don't use "require("autoprefixer")", just "autoprefixer: {}". Why the difference? Also, the plugins is not an array, but an object.

    • @littleoddboy
      @littleoddboy Před 3 měsíci

      dude, tnx for asking this question.
      so I asked ChatGPT about your question. you can ask it too.
      but I found that: in PostCSS you can use two ways to requiring a plugin.
      first. using `require()`
      second. using obj form.
      and u man ask what's the difference? in the second way, you can customise the plugin and set some configurations for it. in the first way, you just straightforward requiring only the plugin, without any thing else (like configuration and ect.) but in the other way, you have more flexibility. also, ChatGPT says: "Different versions of PostCSS or various build tools might prefer one syntax over the other for compatibility or ease of use."
      I hope it's helpful.

  • @moneyfr
    @moneyfr Před rokem

    How convert all my asset to webp on build

  • @yasir269050
    @yasir269050 Před rokem +2

    First to comment

  • @bowendsom
    @bowendsom Před rokem +1

    This is little bit like tailwindcss without class and power of sass ! and lot of plugins required

  • @amsebookstore3765
    @amsebookstore3765 Před rokem

    Sir Create Video Sharing Platform, CZcams similar website

  • @SohailKhan-tc8uz
    @SohailKhan-tc8uz Před rokem +1

    1st view

  • @nomad100hd
    @nomad100hd Před rokem

    I've used Sass and PostCSS, and prefer Sass.

  • @adders9978
    @adders9978 Před rokem

    hello

  • @henryg2350
    @henryg2350 Před rokem

    TOOOOOOO MUCH TALKING

  • @truthteachers
    @truthteachers Před rokem

    Bro, what postcss extension are you using in vscode?

  • @geo-steel
    @geo-steel Před rokem

    How can we deploy this ??

  • @socialkruption
    @socialkruption Před rokem

    Dats right, you better delete your tweets on El0n. >;->