这是我的next.config.js
:
const withCSS = require('@zeit/next-css')
const withLess = require('@zeit/next-less')
const withSass = require('@zeit/next-sass')
if (typeof require !== 'undefined') {
require.extensions['.less'] = () => {}
}
module.exports = withCSS(
withLess(
withSass({
lessLoaderOptions: {
javascriptEnabled: true,
},
})
)
)
,但未缩小生产中的所有.css
。有什么想法吗?