Does grunt-contrib-less support --source-map-map-inline?

风流意气都作罢 提交于 2019-12-02 16:46:54

问题


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.


回答1:


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
        }
    },


来源:https://stackoverflow.com/questions/22543823/does-grunt-contrib-less-support-source-map-map-inline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!