未在生产中缩小Next.js样式

未在生产中缩小Next.js样式,next.js,Next.js,这是我的next.config.js: constwithcss=require(“@zeit/next css”) const withLess=require(“@zeit/next less”) const WITHASS=require(“@zeit/next sass”) 如果(需要的类型!==“未定义”){ require.extensions['.less']=()=>{} } module.exports=withCSS( 没有( 带色({ LessLoader选项:{ java

这是我的
next.config.js

constwithcss=require(“@zeit/next css”)
const withLess=require(“@zeit/next less”)
const WITHASS=require(“@zeit/next sass”)
如果(需要的类型!==“未定义”){
require.extensions['.less']=()=>{}
}
module.exports=withCSS(
没有(
带色({
LessLoader选项:{
javascriptEnabled:true,
},
})
)
)

但是prod中的所有
.css
都没有缩小。有什么想法吗?

您可能需要为CSS加载器提供一个最小化