DEV Community

Discussion on: The Simplest Way To CONFIGURE NEXT.JS With SASS

Collapse
 
pushpankdhruw profile image
⚡️ Pushpank Dhruw

You Can just Add

// next.config.js
const withSass = require('@zeit/next-sass')
module.exports = withSass({
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: "[local]___[hash:base64:5]",
}
})