[英]Does grunt-contrib-less support --source-map-map-inline?
Title says it all. 标题说明了一切。 Is this Less option:
这是较少选项:
http://lesscss.org/usage/#command-line-usage-source-map-map-inline http://lesscss.org/usage/#command-line-usage-source-map-map-inline
Available via grunt-contrib-less, or some other plugin? 可以通过grunt-contrib-less或其他插件使用吗? I'm not hopeful since it does not seem be mentioned anywhere in the grunt-contrib-less docs.
我并不希望,因为在没有grunt-contrib的文档中似乎没有提到它。
To be clear, I don't want grunt to output a separate map file, I'd like the mapping information to appear inline, in the primary output CSS file. 明确地说,我不希望grunt输出单独的地图文件,我希望映射信息在主输出CSS文件中内联显示。
It sure does, here's a stripped down config of what I use: 确实可以,这是我使用的简化配置:
less: {
options: {
sourceMap:true,
outputSourceFiles: true
},
lessFiles: {
src: [
'*.less'
],
ext: '.css',
cleancss:true
}
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.