0

While converting from scss file to css file how to avoid conversion of any particular scss file into css?

I have 20 scss file which eventually convert to css which make css file very large. I am trying to convert only few file to css and want to avoid other.

This question may seems directly asking for solution but i have searching answer for this quite long. but found most of the doc unrelated.

Please give suggestion or direction to solve this issue.

1 Answers1

1

Add an underscore - to the start of the filename. From the official Sass documentation:

If you have a SCSS or Sass file that you want to import but don't want to compile to a CSS file, you can add an underscore to the beginning of the filename. This will tell Sass not to compile it to a normal CSS file. You can then import these files without using the underscore.

wiiiiilllllll
  • 630
  • 6
  • 11