I try to customize a theme of antd with webpack.config.js, but I don't understand how it works. I want to customize the CSS with less-loader.
I follow this link
I have a `webpack.config.js :
module.exports = {
rules: [{
test: /\.less$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader', // translates CSS into CommonJS
}, {
loader: 'less-loader', // compiles Less to CSS
options: {
lessOptions: { // If you are using less-loader@5 please spread the lessOptions to options directly
modifyVars: {
'font-size-base': '140px'
},
javascriptEnabled: true,
},
},
}],
}],
}
But the font size base doesn't change anyway.
Note: I develop a React application with TypeScript.