How to import thrid party css with built-in support #14556
Unanswered
vladfulgeanu
asked this question in
Help
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to import a CSS file that is being used by a third party library but not have to import it in
_app.js
as I don't want it loaded on all pages.Just using
import './Component.module.css';
will not work as those classes will have different names with hashing.Also linking the CSS file directly in the Head (of each page that would use this component) would not be optimal as the CSS would not get minified.
Is this currently not supported in Next 9 built-in CSS support? If not, what (if any) workarounds are there out there?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions