-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable CSS modules for .module.css #87
Comments
Hi there I know that modules have been implemented with scss but I'm not able to get it working: Rollup.config.js:
helloWorld.module.scss and in the tsx file:
Am I doing something wrong? |
Was this resolved? looking at the same issue... |
Hi @mildfuzz yes I got it working correctly. This is my config: const postcss = require('rollup-plugin-postcss');
module.exports = {
rollup(config, options) {
config.plugins.push(
postcss({
modules: true,
})
);
return config;
},
}; |
For anyone stumbling into this thread, this is not an issue with To resolve this, simply add this to
You can also install typescript-plugin-css-modules for IDE support. |
Automatically enable CSS modules for
.module.css
.module.styl
.module.stylus
.module.scss
.module.sass
.module.less
The text was updated successfully, but these errors were encountered: