Search code examples
cssrubysasscompass

Can't find config.rb in existing project that uses SASS


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?


Solution

  • 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.