Skip to content

Instantly share code, notes, and snippets.

@jaredcwhite
Last active August 21, 2020 17:23
Show Gist options
  • Save jaredcwhite/43aaffd14cb6797424d0510e86f3c430 to your computer and use it in GitHub Desktop.
Save jaredcwhite/43aaffd14cb6797424d0510e86f3c430 to your computer and use it in GitHub Desktop.
Example of how to use the svg-sprite Node tool
#!/usr/bin/env bash
# Utilize https://github.com/jkphl/svg-sprite
svg-sprite --symbol --dest=src/images --symbol-dest="" --symbol-sprite="icons.svg" frontend/icons/*.svg
@jaredcwhite
Copy link
Author

jaredcwhite commented Aug 21, 2020

<svg>
  <use xlink:href="/images/icons.svg#alarm"></use>
</svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment