purge-svg-sprite

Sort of like purge css, will purge the unused symbols in svg sprite...

Usage no npm install needed!

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

README

purge-svg-sprite

What is purge-svg-sprite?

Sort of like purge css, will purge the unused symbols in svg sprite... Any symbol exists in the '-c glob path' will be kept in the purged result.

Getting Started

Installation

yarn add purge-svg-sprite -D or npm install purge-svg-sprite -D 

Usage

yarn purge-svg-sprite -c 'path/**/*.svelte' path/**/*.vue -i path/inputSprite.svg -o path/outputSprite.svg