Styling is a core part of designing application pages. Whenever I start working on Next.js, I usually find myself wasting some time googling how to...
For further actions, you may consider blocking this person and/or reporting abuse
Package @zeit/node-sass doesn't seem to exist. Guess it should be just "node-sass" :)
why is nested SCSS not working?
.loginForm{
width:300px;
}
how to add config css modules ?
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]",
}
})
My hero! Been tinkering with this for quite some time, thanks for saving my sanity!
thank you very much, you saved my life!!!!
However, sass is not modular. Is it?
Doing this in any scss file will affect the entire document:
div {
background: red
}
Thanks guy!
Eres mi Dios. Gracias
Thanks this helped...🚀
Doesn't help.
"Module not found: Can't resolve " when I import scss file to component
This is works for me.
sudo npm install --save-dev --unsafe-perm node-sass
Thanks but a little more explanation would be nice, like why is different than the vanilla configuration in the docs and what is url-loader and limit doing?