Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近从 Grunt 切换到 Gulp 任务运行器。
是否可以将编译后的 CSS 文件中的行号作为注释输出,以指示给定规则在 SASS 文件中的来源?
当我使用 grunt-contrib-compass 模块时,默认情况下启用了此类功能。
现在我正在使用 gulp-sass 来编译我的 sass 文件。
是的,您可能需要传递正确的选项:
.pipe(sass({ sourceComments: 'map', sourceMap: 'sass', outputStyle: 'nested' }))