0

How would I exclude folders/files from being included in a CSS @import? Would I use :not()?

I am importing a folder with many subfolders and files that I am importing. I don't want to import each subfolder individually, I just want to exclude one subfolder from the import.

What's the best way to do this?

Paul L
  • 203
  • 1
  • 2
  • 9
  • I may be wrong, but I don't believe it's possible to bulk import sass partials, as it can cause css ordering issues. There's a good post on it here: https://stackoverflow.com/questions/4778627/is-it-possible-to-import-a-whole-directory-in-sass-using-import – Cam Parry Sep 20 '22 at 17:12

0 Answers0