(SASS) How do I exclude my imported files to compile to css files

前端 未结 1 2009
遥遥无期
遥遥无期 2020-12-11 12:11

I have the following sass directory

sass

config.rb
-base.scss
-mixins.scss
-main.scss 

site
  -dowmloads.scss
  -messages.scss
  ...
  ...


        
相关标签:
1条回答
  • 2020-12-11 12:55

    Start the filename with an underscore. You can then import this and it's styles will only get added to the file that imports it. The actual file itself will never get generated into it's own css file.

    Hope it helps.

    0 讨论(0)
提交回复
热议问题