How to migrate away from @zeit/next-sass deprecation?
Next.js built-in Sass support requires you to install sass
as a dependency.
$ npm install sass
You can then simply remove @zeit/next-sass
and @zeit/next-css
plugins from your config.
// next.config.js
module.exports = {
webpack(config, options) {
config.module.rules.push({
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000
}
}
});
return config;
}
};
For further details check the official Sass support docs.