Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.2.1 breaks FontAwesome #7

Closed
francofantini opened this issue Nov 19, 2020 · 2 comments
Closed

Version 1.2.1 breaks FontAwesome #7

francofantini opened this issue Nov 19, 2020 · 2 comments

Comments

@francofantini
Copy link

I've just updated form Nextjs 10.0.1 to 10.0.2 which updates cssnano-simple to 1.2.1 and FontAwesome Icons broke

With 1.2.0 (Nextjs 10.0.1):
image
image

WIth 1.2.1 (Nextjs 10.0.2):
image
image

Do you know how to fix this?

@Timer
Copy link
Owner

Timer commented Nov 19, 2020

Could you provide a full reproduction?

@francofantini
Copy link
Author

I wasn't able to reproduce this issue on codesandbox but i was able to fix it doing this

import Head from "next/head";
import { config, dom } from "@fortawesome/fontawesome-svg-core";
config.autoAddCss = false;
...
return (
  <div>
    <Head><style>{dom.css()}</style></Head>
    ...
  </div>
);

Originally posted by @svachalek in FortAwesome/react-fontawesome#284 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants