Next.js Discord

Discord Forum

How can I skip parsing CSS?

Answered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
How can i disable CSS parsing and include CSS as is with no checks/modifications etc? I want to use features that browser supports, but next doesn't yet (for now i get is not recognized as a valid pseudo-element error)
Answered by Azawakh
Save the .css file to the public folder.
Then include it in your app using a <link rel="stylesheet" href="/raw.css">,
which tells the browser to load it directly without Next.js or PostCSS parsing.
View full answer

2 Replies

@Asiatic Lion How can i disable CSS parsing and include CSS as is with no checks/modifications etc? I want to use features that browser supports, but next doesn't yet (for now i get ` is not recognized as a valid pseudo-element` error)
Azawakh
Save the .css file to the public folder.
Then include it in your app using a <link rel="stylesheet" href="/raw.css">,
which tells the browser to load it directly without Next.js or PostCSS parsing.
Answer
Asiatic LionOP
thx! that solved my issue 🙂