I want to use/compile SASS on an existing project (which has the SASS files ready, it's a template). But I can't find the config.rb so I don't know where to point the CMD(ruby) too. Can I create a new one or something?
Asked
Active
Viewed 3,517 times
0
-
1Sass doesn't use config.rb – cimmanon Sep 04 '14 at 12:43
-
Duplicate: http://stackoverflow.com/questions/25450082/implement-compass-into-an-existing-sass-project – cimmanon Sep 04 '14 at 12:45
-
@cimmanon, I mean scss then – user50248 Sep 04 '14 at 12:53
-
Again, Sass doesn't use config.rb. The syntax you're using is irrelevant. – cimmanon Sep 04 '14 at 13:30
-
Yes it does? I can't use 'compass watch' without a config.rb in the root of my project. – user50248 Sep 04 '14 at 13:33
-
Maybe you mean `config.RU`? – Patrick Oscity Sep 04 '14 at 13:38
-
Compass and Sass are different programs. You say that you need a config.rb for Sass, which is not true because Sass does not use a config.rb. It is only *Compass* that needs a config.rb. – cimmanon Sep 04 '14 at 13:40
-
I think you know that I meant compass. – user50248 Sep 04 '14 at 13:51
-
Why would I think that? Users come here all the time asking for things that don't make sense because they don't understand what they're asking about at all. This is not the first question I have come across where someone is running Sass and asking about config.rb, not realizing that they don't need a config.rb. – cimmanon Sep 04 '14 at 14:50
-
It's okay, you probably get a boner from correcting every little thing. Thanks for 0 help at all. – user50248 Sep 05 '14 at 08:49
1 Answers
3
Provided you are using Compass you can use compass init
.
Which creates a config.rb
file among other things.
directory sass/
directory stylesheets/
create config.rb
create sass/screen.scss
create sass/print.scss
create sass/ie.scss
write stylesheets/ie.css
write stylesheets/print.css
write stylesheets/screen.css
There is a plethora of options available, see the compass docs
And as @cimmanon and others have pointed out Sass and Compass are not the same thing. Compass is a SASS framework which provides some utilities (compass watch
) on top of SASS. SASS is the cake, Compass is the frosting.

max
- 96,212
- 14
- 104
- 165
-
It's still not working, but I read it had something to do with Compass, someone from 31 august also had this problem. – user50248 Sep 04 '14 at 14:38