Grunt-contrib-less支持--source-map-map-inline吗? [英] Does grunt-contrib-less support --source-map-map-inline?

查看:136
本文介绍了Grunt-contrib-less支持--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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆