lessLoaderOptions in next js code example
Example: Module not found: Error: Can't resolve 'less-loader' in '/Users/libyandeveloper/Documents/Apps/vue/first-name'
#Install less and less-loader
$ npm install less less-loader --save-dev
#Then add loader to webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.less$/,
loader: 'less-loader', // compiles Less to CSS
},
],
},
};
#Finally, run it