修改SASS输出 [英] Modifying SASS output

查看:75
本文介绍了修改SASS输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SASS默认情况下在新行中打印CSS注释。据我所知,没有一个选项允许将注释附加到该行。

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.

因此,该块

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

转换为

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

是否可以添加自定义格式?

Is there a way to add custom formatting?

推荐答案

从我所见这是不可能的。我能找到的最好的例子是Sass(当时)的维护者在2008年发布的这篇文章: http://groups.google.com/group/haml/browse_thread/thread/bf7cd23989c1170d

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

这篇关于修改SASS输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆