Last active
August 29, 2015 14:24
-
-
Save kylerberry/44d3e1d1d2bdb7effb03 to your computer and use it in GitHub Desktop.
grunt-svg-sprite config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
svg_sprite : { | |
complex : { | |
cwd : “/svg”, | |
expand : true, | |
src : [“*.svg”], | |
dest : “/sass”, | |
options : { | |
shape : { | |
dimension : { | |
attributes : true | |
}, | |
spacing : { | |
padding : 1 | |
} | |
}, | |
mode : { | |
css : { | |
sprite : “spritesheet.svg”, | |
dest : “../sprites” | |
rende” : { | |
scss : { | |
dest : “_spritestyles.scss” | |
} | |
}, | |
dimensions : true, | |
layout : “vertical” | |
} | |
}, | |
transform : [“svgo”] | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks(‘grunt-svg-sprite’); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment