我想在应用程序中使用css和。scssnext.js
我next.config.js在我的项目中。
此配置适用于scss:
// next.config.js
const withSass = require('@zeit/next-sass');
module.exports = withSass({
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: "[local]___[hash:base64:5]",
}
})
我不知道如何结合const withCSS = require('@zeit/next-css');我当前的配置。
我想使用自定义配置scss(来自我的代码片段)。
有人可以帮我配置下一步css和scssmodule?
我试过:
// // next.config.js
const withSass = require('@zeit/next-sass');
const withCSS = require('@zeit/next-css');
module.exports = withCSS(withSass({
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName: "[local]___[hash:base64:5]",
}
}))
不工作...