Compile LESS files to CSS(smartsprites).
npm install grunt-twoer-less-smartspritesgrunt-twoer-smartsprites
=========================
> 本程序完全 Copy https://github.com/gruntjs/grunt-twoer-less
> 唯一区别就是原程序在编译 Less 时,会破坏 https://github.com/carrotsearch/smartsprites 特定注释语法 background-image:url('@{bg-srpite-url}bg-step.png'); /* sprite-ref: bg-step;/,导致 smartsprites 无法正确解析运行,so......
smartSpriteTag 参数npm install grunt-twoer-smartsprites --save-dev
grunt.loadNpmTasks('grunt-twoer-smartsprites');
``js`
//grunt smartsprite
smartsprite:
{
options:
{
smartSpriteTag : true,
......
}
}
#### smartSpriteTag
Type: Boolean True` 会在 Less 编译时,保存 smartsprites 特定注释语法,否则不做任何处理
如果为