addon-postcss
addon-postcss copied to clipboard
This Storybook addon can be used to run the PostCSS preprocessor against your stories.
### Describe the bug Warning in the CLI when using `@storybook/addon-postcss` with the latest version of `Storybook` version `7.0.2`. Warning in the terminal: `Attention: We've detected that you're using the...
### Describe the bug In my main css files I am importing several other css files to keep things clean and organized. However, in Storybook, these imported files are not...
Opening this issue so we can address the upcoming changes on how addons are built/updated for the upcoming 7.0 release. If anyone is interested in making the changes required and...
### Describe the bug I get this error ``` ModuleError: Module Error (from ../node_modules/@storybook/addon-postcss/node_modules/css-loader/dist/cjs.js): options.mode must be either "global", "local" or "pure" (default "local") ``` when I set this configuration:...
Related PR: #17 There's no option to change the `test` either.
Hey, would it be possible to load a `postcss.config.js` file from the .storybook folder if available? My usecase would be that we want to export our package without autoprefixer and...
### Describe the bug I'm currently using both global CSSes and CSS modules, and can't replace my custom webpack config with this addon. Another part of the issue is that...
### 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...
Is it possible to specify a different extension for the PostCSS config file, e.g. `postcss.config.cjs`? Is this a configuration option available? I'm using SvelteKit which requires the `.cjs` extensions since...