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

Mark css as having side effects in @fortawesome/fontawesome-svg-core #18654

Closed
wants to merge 1 commit into from

Conversation

GertSallaerts
Copy link

We are manually importing the styles.css file in our project (to make our site work with our CSP policy as described in the docs) by including an import '@fortawesome/fontawesome-svg-core/styles.css'; statement in our code. This was working perfectly before the 1.3 release of @fortawesome/fontawesome-svg-core but because of the sideEffects configuration, webpack is now treeshaking the CSS out of our build.

We have some other workarounds available to use but thought it might help other users to include it here?

@niksauer
Copy link

Just ran into the same issue. Please fix for CSP compatibility 👍🏾

@robmadole
Copy link
Member

Thanks for the report! We can get this done. Out of curiosity, @GertSallaerts have you confirmed that this change fixes the issue for you?

@GertSallaerts
Copy link
Author

@robmadole yes, this fixed the problem for us.

@niksauer
Copy link

niksauer commented Jun 8, 2022

@robmadole Can we please move forward on this? 🙂

@mohammadpooladvand
Copy link

mohammadpooladvand commented Jun 15, 2022 via email

@niksauer
Copy link

niksauer commented Dec 9, 2022

@robmadole Should I open a rebased PR or how would you like to proceed? We'd love to upgrade to v6 but this is a blocker.

@tagliala
Copy link
Member

tagliala commented Dec 9, 2022

This has been fixed in 6.1.0

Closing here, thanks for the PR

@tagliala tagliala closed this Dec 9, 2022
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

Successfully merging this pull request may close these issues.

None yet

5 participants