Web Component to request an SVG file external and use inline.
MIT License
Web Component to request an SVG file external and use inline.
Work in Progress
npm i svg-to-inline
<script type="module">
import 'svg-to-inline/svg-to-inline.js';
</script>
<svg-to-inline
path="images/logos/logo.svg"
lazy="true"
class-Name="my-class other-class"
loading-Label="Loading"
></svg-to-inline>
SVG to Inline is released under the terms of the MIT.