Hacker News new | ask | show | jobs
by swimmadude66 2794 days ago
Do you have any plans to add a webpack plugin to inject SVGs at build time? If not, do you mind if I try to create one using the API provided?
1 comments

There was a request to implement this functionality for ParcelJS, but decided against it. Here is the issue:

https://github.com/iconfu/svg-inject/issues/19

Basically we want to keep the project small and focused on the injection itself. Also there is a potential issue with multiple IDs if you pre-inline SVGs (we call this ID hell).

If you want to give it a shot, please go ahead. You can contact us anytime through the issues in the SVGInject project for support or API change requests (I am waruyama on GitHub).