Skip to content

Commit

Permalink
Let storybook be aware of postcss for .module.css files (#3518)
Browse files Browse the repository at this point in the history
* chore: uses addon-styling

* chore: custom properties managed via `postcss.config.js`
  • Loading branch information
maraisr authored Jul 17, 2023
1 parent b4e15b8 commit 2df4d4e
Show file tree
Hide file tree
Showing 5 changed files with 2,236 additions and 288 deletions.
12 changes: 6 additions & 6 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ module.exports = {
},
},
{
name: 'storybook-css-modules',
// TODO: replace with @storybook/addon-styling for storybook v7
name: '@storybook/addon-styling',
options: {
cssModulesLoaderOptions: {
modules: {
localIdentName: 'prc_[local]-[hash:base64:5]',
},
cssModules: {
localIdentName: 'prc_[local]-[hash:base64:5]',
},
postCss: {
implementation: require('postcss'),
},
},
},
Expand Down
Loading

0 comments on commit 2df4d4e

Please sign in to comment.