How to use the @fortawesome/fontawesome-free/sprites/solid.svg.replace function in @fortawesome/fontawesome-free

To help you get started, we’ve selected a few @fortawesome/fontawesome-free examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thomasloven / hass-fontawesome / js / fas.js View on Github external
import txt from "@fortawesome/fontawesome-free/sprites/solid.svg"
const iconset = document.createElement("ha-iconset-svg");
iconset.name="fas";
iconset.size="1024";
iconset.innerHTML = txt.replace(/\