Rely on

Next react also needs webpack@^4.0.0 and “@zeit/next-css”: “^1.0.1”

The configuration file

next.config.js

const withCSS=require("@zeit/next-css")
module.exports=withCSS()
Copy the code

use

Add styles to the Style folder and apply Sass to the components you want to use

const withCSS=require("@zeit/next-css")
const withSass=require("@zeit/next-sass")
module.exports=withCSS()
module.exports=withSass()
Copy the code