-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
How to use css modules #76
Comments
You can set your own bundler config by passing on // doczrc.js
export default {
modifyBundlerConfig: (config) => {
/* logic here */
return config
}
} More info on issue #6 |
@pedronauck I setup a sass-loader in the I added my config by pushing to the |
Try to make your config like that @S-unya: // doczrc.js
export default {
modifyBundlerConfig: (config) => {
config.resolve.extensions.push('.scss')
config.module.rules.push({
test: /\.scss$/,
use: ["style-loader", "css-loader", "sass-loader"]
})
return config
}
} |
Thanks! |
After released v0.2.11 you can use docz-plugin-css to configure your CSS just by adding a plugin ✌️ |
Nice work. Thanks. |
Is there a way to use css modules with docz?
Description
I'm using css modules with the webpack loader
css-loader
here is a component for an exemple
and my very simple mdx file
when I start docz dev server, I have this error message
I assume that the css loader is not used with the bundler.
I have two questions:
The text was updated successfully, but these errors were encountered: