PostCSS Crash Course

Поделиться
HTML-код
  • Опубликовано: 28 май 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
  • НаукаНаука

Комментарии • 75

  • @spreadItWide
    @spreadItWide Год назад +82

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

  • @entrepreneurzee
    @entrepreneurzee Год назад +8

    Here for all the tutorials, big thumbs up.

  • @littleoddboy
    @littleoddboy 4 месяца назад

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

  • @bogdanlupu3679
    @bogdanlupu3679 Год назад +12

    Thanks Brad as usual your tutorials are top notch.

  • @monles2352
    @monles2352 Год назад

    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.

  • @paulthomas1052
    @paulthomas1052 Год назад +1

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

  • @petarkolev6928
    @petarkolev6928 Год назад

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

  • @parvezmosharraf6522
    @parvezmosharraf6522 Год назад

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

  • @cipherlofi6453
    @cipherlofi6453 Год назад +1

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

  • @almhdy24
    @almhdy24 Год назад +1

    New great tutorial.
    Thank you 💜

  • @walidallaf6057
    @walidallaf6057 Год назад

    Thanks bro ❤️
    Another awesome tutorial 🔥

  • @aram5642
    @aram5642 Год назад +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.

  • @motsi9593
    @motsi9593 Год назад +1

    Thank you man. Great deep stuff.

  • @kirkpatrikolis273
    @kirkpatrikolis273 Год назад +1

    thanks brad waiting for this one ♥️

  • @aneliayacheva6671
    @aneliayacheva6671 Год назад

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

  • @rickythegermanshepherd5438
    @rickythegermanshepherd5438 Год назад +1

    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

  • @flojj
    @flojj Год назад

    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

  • @webWithMe
    @webWithMe Год назад +1

    Cool course👍

  • @jeffsuddaby4788
    @jeffsuddaby4788 Год назад

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

  • @gambomaster
    @gambomaster Год назад

    Thank you Brad. 🙏

  • @MohammedAbdulMohaiman
    @MohammedAbdulMohaiman Год назад +1

    Awesome... Thanks 💙

  • @indaneeydesign165
    @indaneeydesign165 Год назад

    Thank you Brad

  • @jssecrets
    @jssecrets Год назад

    Thank you mane!

  • @nvrp
    @nvrp Год назад

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

  • @glitchspark1663
    @glitchspark1663 Год назад +3

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

  • @chanmyaemaung
    @chanmyaemaung Год назад +1

    Awesome!!!

  • @herosimobiko
    @herosimobiko Год назад

    Never knew that PostCSS is as powerfull as this 😄

  • @wisdomelue
    @wisdomelue Год назад

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

  • @champorado2131
    @champorado2131 Год назад

    Wow nice one.

  • @sourabhshukla8625
    @sourabhshukla8625 Год назад

    thanks brad

  • @Bawaromerali
    @Bawaromerali Год назад

    Thanks man.

  • @carlosz1858
    @carlosz1858 Год назад

    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?

  • @lifeisbeautifu1
    @lifeisbeautifu1 Год назад

    Thank you

  • @Whovianpancake
    @Whovianpancake Год назад +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.

  • @shauntonesify
    @shauntonesify Год назад +1

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

  • @luishenriqueandradepellizz680
    @luishenriqueandradepellizz680 Год назад +1

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

  • @Tony.Nguyen137
    @Tony.Nguyen137 Год назад

    Are there also plugins for javascript file to optimize it?

  • @AnDi-tx2xh
    @AnDi-tx2xh Год назад

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

  • @OnePiece_Fandom
    @OnePiece_Fandom Год назад +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 ?

    • @OnePiece_Fandom
      @OnePiece_Fandom Год назад

      Solved it , btw thanks for this awesome tutorial

  • @armanahmed4806
    @armanahmed4806 Год назад +1

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

  • @blxckmage
    @blxckmage Год назад

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

  • @akam9919
    @akam9919 Год назад

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

  • @mohamedabdulla8097
    @mohamedabdulla8097 Год назад

    Waiting for you nextjs 13 upgrades

  • @AmodeusR
    @AmodeusR Год назад

    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 4 месяца назад

      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.

  • @Venkatesh-vm4ll
    @Venkatesh-vm4ll Год назад +1

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

  • @zedshockblade7157
    @zedshockblade7157 Год назад

    Next Js 13 please!

  • @moneyfr
    @moneyfr Год назад

    How convert all my asset to webp on build

  • @yasir269050
    @yasir269050 Год назад +2

    First to comment

  • @aashishpudasaini4418
    @aashishpudasaini4418 Год назад

    👍

  • @bowendsom
    @bowendsom Год назад +1

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

  • @amsebookstore3765
    @amsebookstore3765 Год назад

    Sir Create Video Sharing Platform, RUclips similar website

  • @nomad100hd
    @nomad100hd Год назад

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

  • @SohailKhan-tc8uz
    @SohailKhan-tc8uz Год назад +1

    1st view

  • @adders9978
    @adders9978 Год назад

    hello

  • @henryg2350
    @henryg2350 Год назад

    TOOOOOOO MUCH TALKING

  • @truthteachers
    @truthteachers Год назад

    Bro, what postcss extension are you using in vscode?

  • @oldgsteel
    @oldgsteel Год назад

    How can we deploy this ??

  • @socialkruption
    @socialkruption Год назад

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