How to import per page css without modules #11101
Unanswered
tankpower1
asked this question in
Help
Replies: 0 comments
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.
-
Hi, so currently i have an issue with importing css from node_modules only where i need it.
In my
_app.js
i import the global css, but i need to import a css file from a package in node_modules only in a certain page which is rarely opened. Without using modules i have no other way but to import it also globally in_app.js
and thats a problem since the css is quite big and loads on every page. So my question is how can iimport 'node_modules/package/index.css'
only on the page i need it to without using modules. Using next-css works but breaks some of the features of the canary release im on (9.3.1-canary.6).Beta Was this translation helpful? Give feedback.
All reactions