Exclude files when compiling

1,515 views
Skip to first unread message

Florian

unread,
Apr 27, 2011, 11:48:24 AM4/27/11
to Compass
Hello

Is there a way to exclude a .scss file when compiling?

What I want to do is import files, but not compile them. Example
files:

header.scss
footer.scss
screen.scss (imports header.scss, footer.scss)
print.scss (imports header.scss)

Now I'd like to have only screen.css and print.css in my target
directory. Is there a way to do this?
I found out that by prefixing a dot to a filename (.footer.scss), the
file is imported but not built as a separate .css file. The only
problem is, that this file is not being observed anymore by "compass
watch".

Thanks,
Florian


Mario "Kuroir" Ricalde

unread,
Apr 27, 2011, 11:59:48 AM4/27/11
to compas...@googlegroups.com
Yes, you can do this by adding a _ before the name. This will prevent them from compiling.

-- 
Mario "Kuroir" Ricalde
+1 ‪(415) 800-415-4‬
--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.

Florian

unread,
Apr 27, 2011, 12:47:32 PM4/27/11
to Compass
On 27 Apr., 17:59, Mario "Kuroir" Ricalde <kur...@gmail.com> wrote:
> Yes, you can do this by adding a _ before the name. This will prevent them from compiling.

Now I feel almost silly for not trying the underscore, after trying
the dot.. :-)

Thank you very much!

Chris Eppstein

unread,
Apr 27, 2011, 1:23:31 PM4/27/11
to compas...@googlegroups.com
This and other delicious sass features are well documented here:


Reply all
Reply to author
Forward
0 new messages