I am using nextJs and need to add support for both less and css. I want to have next-css and next-less both for a project. But It accept one at a time. Here is what I am using
const withCSS = require('@zeit/next-css')
module.exports = withCSS({
/* config options here */
})
const withLess = require('@zeit/next-less')
module.exports = withLess({
cssModules: false,
lessLoaderOptions: {
javascriptEnabled: true
}
})
Am I including both loaders correctly? And I need javascriptEnabled: true too. How can we acchieve this configuration.
I really appreciate if you can give any hint or two.
next-css?