I want to link to just a plain css file in my Next 13 app, but adding it to a Head component does nothing. I also tried creating a custom _document both in app and pages, and that also did nothing. What’s the recommended way to do this in Next 13? Thanks!
2
Answers
First You can do like this:
Head.module.css
.Head.js
component by usingimport styles from "./Head.module.css
incomponents
folder.components
folder.And that’s all.
You can also refer this CSS Modules docs
I hope this helps!
Please see the following doc for importing global stylesheets – https://nextjs.org/docs/app/building-your-application/styling/css-modules#external-stylesheets