【发布时间】:2016-04-26 13:06:12
【问题描述】:
我使用 libass 和 susy,使用 grunt 和 compass-importer。 我的项目安装的基础来自 http://zellwk.com/blog/grunt-sass-with-susy/
在我更新文件之前一切正常,现在源映射不再向我提供 scss 文件中属性的确切行。 该示例已在印刷中。
sourmap 不是将我指向第 941 行,而是将我指向第 935 行
我的 grunt 文件是这样配置的:
// Grunt-sass
sass: {
app: {
// Takes every file that ends with .scss from the scss
// directory and compile them into the css directory.
// Also changes the extension from .scss into .css.
// Note: file name that begins with _ are ignored automatically
files: [{
expand: true,
cwd: 'scss',
src: ['*.scss'],
dest: 'css',
ext: '.css'
}]
},
options: {
importer: compass,
sourceMap: true,
outputStyle: 'nested',
imagePath: "../",
}
【问题讨论】:
-
插入选项:lineNumber: true ,如果修复我会更新我的答案
标签: sass source-maps libsass grunt-contrib-sass