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?
问问题
3484 次
1 回答
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.
于 2014-09-04T14:18:19.333 回答