To integrate Stylable with Storybook, configure your Storybook webpack configuration and add the following snippet.
This snippet basically does two things:
- Excludes Stylable files (
*.st.css) from all other existing CSS loaders
StylableWebpackPluginto the webpack configuration
This snippet should work for the default Storybook configuration while having assumptions about the structure of the webpack configuration file, and so this might break in future releases.