jzabala / gatsby-plugin-fontawesome-css

Gatsby plugin that disables Font Awesome auto CSS insertion and instead inserts it at compile time.
14 stars 7 forks source link

Update support for Gatsby 4 #10

Closed crummy closed 2 years ago

crummy commented 3 years ago

This plugin blocks upgrades to Gatsby 4.0

dukebody commented 2 years ago

Same issue here.

InfamousStarFox commented 2 years ago

As a work around for this plugin not working in Gatsby v4, you can use

import { config, dom } from "@fortawesome/fontawesome-svg-core";
config.autoAddCss = false;

--------------------

<Helmet>
    <style>{dom.css()}</style>
</Helmet>
jzabala commented 2 years ago

Thank you very much for the PR @crummy