Skip to content

Instantly share code, notes, and snippets.

@mikestreety
Last active August 29, 2015 14:16
Show Gist options
  • Save mikestreety/8f45ff4829ce1f5ccfc5 to your computer and use it in GitHub Desktop.
Save mikestreety/8f45ff4829ce1f5ccfc5 to your computer and use it in GitHub Desktop.
Gulp-svg-sprite config
{
"mode": {
"css": {
"spacing": {
"padding": 5
},
"dest": "./",
"layout": "diagonal",
"sprite": "img/sprite.svg",
"bust": false,
"render": {
"scss": {
"dest": "css/src/_sprite.scss",
"template": "path/to/template.scss"
}
}
}
}
}
$icons: (
sprite: (width: {{spriteWidth}}px, height: {{spriteHeight}}px, pngPath: '../img/sprite.png', svgPath: '../img/sprite.svg'),
{{#shapes}} {{base}}: (width: {{width.inner}}px, height: {{height.inner}}px, backgroundX: {{position.absolute.x}}px, backgroundY: {{position.absolute.y}}px),
{{/shapes}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment