Rudreshwar Baranwal
Rudreshwar Baranwal

Reputation: 11

Can we add SCSS file in HTML?

Is there any way that we can use SCSS file in HTML?

I just came to know about SCSS and found that we generally use it in Ruby language, So out of curiosity I tried to add SCSS in my frontend project instead of CSS as SCSS contains more features that are not present in CSS, but failed.

Upvotes: 1

Views: 477

Answers (1)

Antosser
Antosser

Reputation: 391

Your browser unfortunately can't read SASS/SCSS. You will need to use the SASS compiler to compile it to normal CSS.
But most people don't use SCSS on its own and use a module bundler like Vite

Hope this helps!

Upvotes: 2

Related Questions