grunt-rsvg
Version:
Grunt task for rsvg library
54 lines (48 loc) • 1.16 kB
Markdown
Grunt task for rsvg library
Notice that you have to install the `rsvg` library on your computer.
````
npm install grunt-rsvg --save-dev
````
````js
grunt.initConfig({
rsvg: {
options: {
/*
dpiX,
dpiY,
zoomX,
zoomY,
zoom,
format,
keepAspectRatio: true/false,
noKeepImageData: true/false,
backgroundColor
*/
sizes: [
[], //192 x 192 pixels
[],
[],
[],
[],
[],
[],
[],
[]
]
},
main: {
files: [
{
src: ['src/images/icon.svg'],
dest: 'src/images/icons'
}
]
}
}
});
grunt.loadNpmTasks('grunt-rsvg');
````
You may find the description of each option [here](http://manpages.ubuntu.com/manpages/precise/man1/rsvg-convert.1.html)