Modifying SASS output

我的未来我决定 提交于 2019-12-02 14:30:36

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/7424864/modifying-sass-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!