addon-postcss icon indicating copy to clipboard operation
addon-postcss copied to clipboard

feat: Support CSS Modules

Open TeoTN opened this issue 4 years ago • 3 comments

Issue

Resolves: https://github.com/storybookjs/addon-postcss/issues/29

Description

Added additional rule that handles CSS modules when they have .module.css extension. The rule is mutually exclusive with .css rule. Also using different lifecycle method - webpackFinal instead of webpack. Otherwise, a CSS rule is added implicitly by Storybook afterwards, causing it to parse CSS files twice, and in consequence it'd fail. This implementation replaces that rule.

TeoTN avatar Jul 02 '21 16:07 TeoTN

This works as intended for my purposes!

unpunnyfuns avatar Nov 16 '21 20:11 unpunnyfuns

This works well in my case too, i have built your branch and used https://www.npmjs.com/package/patch-package to start using it, but would be good to have this merged

alesma avatar Jul 19 '22 15:07 alesma

Is there a reason this is not being merge, not being able to support css modules seems like a pretty big deal?

ryanzec avatar Oct 31 '22 00:10 ryanzec