Grunt-contrib-less支持--source-map-map-inline吗? [英] Does grunt-contrib-less support --source-map-map-inline?
问题描述
http://lesscss.org/usage/#command-line-usage-source-map-map-inline
可用通过grunt-contrib-less或其他插件?我没有希望,因为它似乎没有在grunt-contrib-less文档中的任何地方提及。
要清楚,我不想让grunt输出一个单独的映射文件,我希望映射信息以内联方式出现在主输出CSS文件中。
确实如此,这里是我使用的简化配置: less:{
options:{
sourceMap :true,
outputSourceFiles:true
},
lessFiles:{
src:[
'* .less'
],
ext :'.css',
cleancss:true
}
},
Title says it all. Is this Less option:
http://lesscss.org/usage/#command-line-usage-source-map-map-inline
Available via grunt-contrib-less, or some other plugin? I'm not hopeful since it does not seem be mentioned anywhere in the grunt-contrib-less docs.
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.
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
}
},
这篇关于Grunt-contrib-less支持--source-map-map-inline吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!