Customizing the formatting output of .sass?

meder omuraliev picture meder omuraliev · Jul 1, 2010 · Viewed 9.9k times · Source
#foo {
color:black; }

Is there some sort of option to prefix a newline before the trailing } when a .css file is generated from .sass?

I would appreciate it if someone included an example of combining sass --watch style.scss:style.css, which is what I'm using, along with this newline requirement.

Answer

Andrew Vit picture Andrew Vit · Aug 21, 2010

You can pass a --style parameter to specify what you want. I think you want the "expanded" style:

sass --watch style.scss:style.css --style expanded

See the Sass documentation for different output styles.