Backend Discussion Javascript NodeJS

Creating SVG Sprites using Gulp and Sass

gulp-svg-sprite is a Gulp plugin wrapping around svg-sprite which takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types:

  • Traditional CSS sprites for use as background images,
  • CSS sprites with pre-defined <view> elements, useful for foreground images as well,
  • inline sprites using the <defs> element,
  • inline sprites using the <symbol> element
  • and SVG stacks.

https://github.com/jkphl/gulp-svg-sprite

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *