fontawesome-svg-loader

Loads Font Awesome SVG icons and inlines them in place of the default markup
Installation
npm install @floatwork/fontawesome-svg-loader -S
Usage
Include script and stylesheet in your website
<noscript>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" />
</noscript>
<script src="https://cdn.jsdelivr.net/npm/@floatwork/fontawesome-svg-loader@latest/dist/fontawesome-svg-loader.js" charset="utf-8" defer></script>
Use the Font Awesome markup like you usually would, the library will take care of the rest
<i class="fas fa-feather-alt"></i>
Options
options.url
Type: string
Provide URL to the SVGs folder of Font Awesome v5. Defaults to jsDelivr.
options.fetch
Type: object
Options for fetch()
, see MDN for details. Defaults to {cache: 'force-cache'}
License
This work is licensed under The MIT License