【发布时间】:2016-09-05 14:29:27
【问题描述】:
我正在尝试在我的输出 CSS 中获取源 cmets。我正在使用基础框架并使用 Grunt 和 Bourbon 进行编译。我尝试在options 中将sourceComments 设置为true,但还没有成功。我使用的是grunt-sass,而不是grunt-contrib-sass。
【问题讨论】:
标签: sass gruntjs comments bourbon
我正在尝试在我的输出 CSS 中获取源 cmets。我正在使用基础框架并使用 Grunt 和 Bourbon 进行编译。我尝试在options 中将sourceComments 设置为true,但还没有成功。我使用的是grunt-sass,而不是grunt-contrib-sass。
【问题讨论】:
标签: sass gruntjs comments bourbon
我推荐你使用 grunt-contrib-sass ,所有 contrib 任务都有一个不断更新和良好的社区。p>
如果你使用 grunt-contib-sass 就这样使用:
sass.dev = {
options: {
style: "expanded",
lineNumber: true,
update:true
}
};
【讨论】:
sourceMap,这让我很顺利。