const withLess = require('@zeit/next-less')
const withSass = require('@zeit/next-sass')
module.exports = withLess(withSass({ // options }))
seems ugly and friendly to developers~~~
I use next-compose-plugins then wrap them into it.
const withPlugins = require("next-compose-plugins");
const withCSS = require("@zeit/next-css");
const withLess = require("@zeit/next-less");
const withSass = require("@zeit/next-sass");
const config = {
// all your options here
};
module.exports = withPlugins([withCSS, withSass, withLess], config);
Most helpful comment
I use
next-compose-pluginsthen wrap them into it.