rakitin
rakitin

Reputation: 2175

Change the output directory of .css files

New to ruby (I usually use python/django), new to sass. I'm simply trying to configure the output css directory option.

Related question here: changing the output directory of the resulting css file in compass webby and here: possible to change the sass compass output folder for different files

Answer to both is to change config.rb. Where is config.rb found? Is there another way to set the options?

Upvotes: 21

Views: 34114

Answers (4)

Furqan Amin
Furqan Amin

Reputation: 55

You can also use koala app(http://koala-app.com/) to change the css output direcctory. i think this is simplest method. 1. Install Koala app 2. Run and add both directories in Koala interface and refersh.

enter image description here

Upvotes: 0

eneepo
eneepo

Reputation: 1457

You can simply use:

sass --watch input-dir:output-dir

i.e:

sass --watch scss:css

Upvotes: 38

maxbeatty
maxbeatty

Reputation: 9325

config.rb is specific to Compass projects and is located in the root of your project. If you are using Compass, you can specify css_dir to your liking keeping in mind that / is root of your Compass project.

css_dir = "/assets/css"

If you are using just Sass, you can specify the output path when compiling.

sass input.scss ../path/to/output.css

Upvotes: 16

mattc
mattc

Reputation: 47

Open config.rb in a text editor and change "css_dir" from "stylesheets" to "/" (see below)

   http_path = "/"
   css_dir = "/"
   sass_dir = "sass"
   images_dir = "images"
   javascripts_dir = "javascripts"

Upvotes: 3

Related Questions