This One Weird Sass Trick Will Save You Time On Your Next Project! // Vue Sass Tutorial Tricks

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 64

  • @ProgramWithErik
    @ProgramWithErik  4 роки тому

    📚 Check out this black friday - Cyber Monday sale!!
    course.vuecourse.tech

  • @mysterOrel7924
    @mysterOrel7924 4 роки тому +2

    Heard this trick in a podcast... glad to see it in video ! This tricks are very useful !

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

    whats the name of the theme you are using in vscode?

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

    What VS code theme do you use?

  • @angelo.piletti
    @angelo.piletti 3 роки тому

    You had helped me a lot bro! Thanks!!

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

    can you add more than one additional data with the route to another scss file, so you can have multiple sharable scss files across the different components?

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

    Thanks Erik you saved my time

  • @abhinavgeorge5714
    @abhinavgeorge5714 4 роки тому

    Noice !!!! Really luv ur vids !! Great vids

  • @МариАлекса
    @МариАлекса 3 роки тому

    I was looking exactly that, thx a lot

  •  3 роки тому

    Thank you man.

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

    How to configure for the nuxt? Thank you 😊

  • @kenbee85
    @kenbee85 3 роки тому +4

    Thanks for this. I have encountered an error while following this tutorial. For some reason it doesn't work. I think i have the latest vue cli so I used this instead:
    npm install -D sass-loader@^10 sass
    Which was actually on the guide with vue sass loader.
    Just in case some also encountered an issue. Cheers!

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

    vary helpful

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

    In order to make the Css file in the public folder as a compressed file, what should I add? thank you

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

    Thanks

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

    useful skills!! keep it up!

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

    thanks, you're the best 👍

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

    What is extension lit up font ?

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

    I am currently creating a shopping basket with Vue 3 and SASS, thanks for the hint :-)

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

    Does this still work if you are using nuxt? I get errors thrown in my components that my sass variables defined in my global are undefined :-/

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

    When I add a new import file, the server does not start without turning it off and on, what do you think?

  • @Ghanshyam1987
    @Ghanshyam1987 4 роки тому

    Can we use this trick in Angular as well?

  • @kjn6037
    @kjn6037 4 роки тому

    Any reason why you named your global css that starts wtih _ ?

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

    I've seen 20 incorrect tutorials before yours, thank you sir!

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

    What should i do if i want to use an indentation of 1 tab instead of 2 spaces?

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

    Isn't it bad practice to use @import? Scss requires us to use @use now

  • @lupikas2008
    @lupikas2008 4 роки тому

    isnt better to use scss style file rather SFC styling? And why?

  • @markocanovic4936
    @markocanovic4936 4 роки тому

    Ok the issue is with Node version , if you use Node 14.x.x and you use --> "vue init webpack app-test..." Then you need to install node-sass@4.14.1 and if you use Node 15.x.x then it won't work..

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

    not working vue3 application using cli

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

    teşekkürler

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

    Very helpful and looks really simple, thanks!

  • @heyyy4987
    @heyyy4987 4 роки тому

    nice..

  • @markocanovic4936
    @markocanovic4936 4 роки тому

    And now you get thumbs up! :P

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

    1. Don't use @import any more, use @use and/or @forward.
    2. In vite 2.0 the setup is the same, except it's in vite.config.[ js/ts ]

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

      & scss will compiled (to css) on the vite server running? is a PostCSS needed

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

      For reference, @import would pull in the entire file every time you imported it from multiple files and every variable, mixin, etc was global.
      @use - only imports the file once, no matter how many times it’s imported from different files. It also makes variables, mixing, etc. scoped to the file with a namespace so that you can find errors much easier.
      @forward - does the same thing as @use except it makes all variables, mixing, etc. local to the file you are bringing it in on. This way you don’t have to use namespaces. This is great for index files.

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

      @@mattc16 how do add namespaces in vue.cofing.js? AdditionalData has backquotes so, in '@use "@/styles/sass/variables.scss" as variables' (for example) 'as variables' isn't interpreted.

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

    Do it like that and you will have to remember you did it like that. Do it for 6 different files and you are lost after a day or two. After 3 days you will be scratching your head why stuff that is supposed to be working is this way is working that way. In summary, build trees not graphs (yeah, I know a tree is a graph), hopefully you know what I mean ;)

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

    Epic

  • @markocanovic4936
    @markocanovic4936 4 роки тому

    Not working, I don't know how I have issue installing SASS always. Now I need to first solve issue of installing SASS and then too watch this video..

    • @ProgramWithErik
      @ProgramWithErik  4 роки тому

      Yes! Check out some of my other vids on Vue and Sass

  • @solvedfyi
    @solvedfyi 4 роки тому

    Trying to figure out if this title is making fun of clickbait or surrendering to it

  • @vladutcornel
    @vladutcornel 4 роки тому +1

    "For Sass, use SCSS" - This must be so confusing, unless you know why that is.

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

      well is it tho, u go to their website and see sass and scss and css next to eachother, ok scss is with css rules, brackets, semicolons, ok whatever ill add those and finito

  • @thecscontent5110
    @thecscontent5110 4 роки тому

    I also do videos about programming!😁

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

    oh dude. too less likes then you deserve) ty sooooo much

  • @milkyway9225
    @milkyway9225 4 роки тому

    This one weird trick made woman want me. How many ,,these one weird tricks" are there? I love how youtube geeks incorporate these one weird tricks from adult sites to their cheap clickbaits :D

  • @jimmyj.6792
    @jimmyj.6792 4 роки тому

    Super cooool but better to use tailwindcss 😂😁😁😁🔥🔥🔥🔥

  • @videoaudio7669
    @videoaudio7669 4 роки тому

    Tired of your tricks