Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriscoyier/inline-or-cache-svg---both
Let's see how possible this is.
https://github.com/chriscoyier/inline-or-cache-svg---both
icons
Last synced: 16 days ago
JSON representation
Let's see how possible this is.
- Host: GitHub
- URL: https://github.com/chriscoyier/inline-or-cache-svg---both
- Owner: chriscoyier
- Created: 2019-03-07T23:23:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T23:53:21.000Z (over 3 years ago)
- Last Synced: 2024-08-01T05:20:40.728Z (3 months ago)
- Topics: icons
- Language: HTML
- Homepage: https://pedantic-keller-faeef3.netlify.app/
- Size: 24.4 KB
- Stars: 38
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Icons! Cached!
I wrote that inlining your
<svg>
icons makes for the best icon system. Scott Jehl wrote that just because you inline something doesn't mean you can't cache it. Let's see if Scott's idea can extend to SVG icons.[Demo Site](https://serene-sinoussi-3d0c1f.netlify.com/)
## Needs a server...
This works on macOS:
```
php -S localhost:2222
```## Build
There is a wildly simple build step here:
```
node build/build.js
```It's just so that the SVG icons can be included and not duplicated needlessly.