如何迁移和更改next.config.js文件以@zeit/next-sass使用 Next.js 对 Sass 的内置支持?
https://www.npmjs.com/package/@zeit/next-sass
const withSass = require('@zeit/next-sass')
const withCSS = require("@zeit/next-css");
module.exports = withCSS(withSass({
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;
}
}));
Run Code Online (Sandbox Code Playgroud)