Harmony Proxy Mothibe
Harmony Proxy Mothibe

Reputation: 74

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

I have the following sass directory

sass

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

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

This works fine, however I don't want all my .scss files to compile to css files.I just want to output main.css because it imports the other files. Whenever I do compass watch all the css get created... Is this possible?


Upvotes: 1

Views: 2747

Answers (1)

grimmus
grimmus

Reputation: 513

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.

Upvotes: 4

Related Questions