@vusion/svg-sprite

SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)

Usage no npm install needed!

<script type="module">
  import vusionSvgSprite from 'https://cdn.skypack.dev/@vusion/svg-sprite';
</script>

README

@vusion/svg-sprite

This is a fork of svg-sprite with some modifications. Remove PhantomJS which is very large for main project.

Modifications

lib/svg-sprite/shape.js

  • delete PhantomJs process when there are no width and height

svg-sprite

is a low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types.