Is it possible to use Storybook UI with React, CSS modules and Less? Have anyone managed to configure this kind of setup?
Adding .storybook/webpack.config.js helped me fix the issue, with
module.exports = {
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader'],
}, {
test: /\.css$/,
use: {
loader: "css-loader",
options: {
modules: true,
}
}
}
],
},
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With