开发者

Modifying SASS output

开发者 https://www.devze.com 2023-04-04 18:53 出处:网络
SASS prints css comments in a new line by default. There doesn\'t exist a option as far as I know that allows comments to appended to the line.

SASS prints css comments in a new line by default. There doesn't exist a option as far as I know that allows comments to appended to the line.

So, the block

开发者_开发知识库
body {
  background-image: url(.....); /** comment */
  color: white; /** comment */
}

is converted to

body {
    background-image: url(.....);
    /** comment */
    color: white;
    /** comment */
}

Is there a way to add custom formatting?


From what I have seen this isn't possible. The best example I could find is this post from 2008 by the (then) maintainer of Sass: http://groups.google.com/group/haml/browse_thread/thread/bf7cd23989c1170d

0

精彩评论

暂无评论...
验证码 换一张
取 消