【问题标题】:How to enable grunt-sass sourceComments with bourbon如何启用 grunt-sass sourceComments with bourbon
【发布时间】:2016-09-05 14:29:27
【问题描述】:

我正在尝试在我的输出 CSS 中获取源 cmets。我正在使用基础框架并使用 Grunt 和 Bourbon 进行编译。我尝试在options 中将sourceComments 设置为true,但还没有成功。我使用的是grunt-sass,而不是grunt-contrib-sass

【问题讨论】:

    标签: sass gruntjs comments bourbon


    【解决方案1】:

    我推荐你使用 grunt-contrib-sass ,所有 contrib 任务都有一个不断更新和良好的社区。​​p>

    如果你使用 grunt-contib-sass 就这样使用:

    sass.dev = {
            options: { 
            style: "expanded", 
            lineNumber: true,
            update:true
            }
    };
    

    【讨论】:

    • 我喜欢您的建议,但不幸的是,我与一个必须先运行该团队的团队合作。我已经使用了sourceMap,这让我很顺利。
    • 我明白了,公司里的习惯是魔鬼,你们公司里有没有类似的小组可以发送插件更改、语言更改之类的?缩进改变,这样你就可以展示公司应该搬家的好处?
    猜你喜欢
    • 2013-12-15
    • 2014-01-25
    • 2015-11-06
    • 2013-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-21
    • 2014-03-30
    相关资源
    最近更新 更多