meder omuraliev
meder omuraliev

Reputation: 186562

Customizing the formatting output of .sass?

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

Upvotes: 25

Views: 10043

Answers (3)

Al-76
Al-76

Reputation: 1878

I found the above solution to error in the terminal. If so, you can try the below which worked for me.

sass --watch scss:css --style expanded

Upvotes: 0

Andrew Vit
Andrew Vit

Reputation: 19249

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.

Upvotes: 48

igorw
igorw

Reputation: 28249

You can set the style to expanded: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style

Upvotes: 4

Related Questions