2min chapter

Syntax - Tasty Web Development Treats cover image

Lightning CSS

Syntax - Tasty Web Development Treats

CHAPTER

How to Use CSS Modules in Your Code

Single file component style where you just Write your css in the same file and then it scopes it to that file Exactly. Next up we have a bundle and minifying Will in line your at imports? So it's kind of Assumed that you shouldn't use at imports in your css Because the way that they work is the browser downloads Yeah, some css and if you have an import in there It has to download it parse it and then it goes oh shoot you need something else. This uh lightning css will in line those for you because it's nice to use at imports just like using Modules in javascript. Back to Mail Online home. Back to the page you

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode