本文首發:shudong.wang/10606.htmlcss
const withPlugins = require('next-compose-plugins');
複製代碼
module.exports = withPlugins(
[
[
stylus,{插件一}
],
[
css,{插件二}
]
],
nextConfig
);
複製代碼
const nextConfig = {}
module.exports = withPlugins(
[
[
stylus,
{
cssModules: true,
cssLoaderOptions: {
importLoaders: 1,
localIdentName
}
}
],
[
css,
{
cssModules: true,
cssLoaderOptions: {
localIdentName
}
}
]
],
nextConfig
);
複製代碼