feat: Support CSS Modules
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.
This works as intended for my purposes!
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
Is there a reason this is not being merge, not being able to support css modules seems like a pretty big deal?