DEV Community

loading...

Discussion on: StorybookJS: Tips & Tricks

Collapse
pankajpatel profile image
Pankaj Patel

Good tips for the Sorybook David.

We recently upgraded to Webpack5 and it broke storybook like anything, took a long time fixing it.

Collapse
daviddalbusco profile image
David Dal Busco Author

Thank you for the feedback Pankaj!

Good to know about Webpack5.

Did you ejected the webpack configuration to customize it or you had even trouble with the default configuration?

Collapse
pankajpatel profile image
Pankaj Patel

I don't think, there is need to eject configs on Storybook; you can customize pretty much everything from .storybook/main.js

Though the main trouble was to find and manually add the needed polyfils, as webpack no longer adds them by default from v5.

Currently, the project's config and storybook's config for webpack are similar but copies. I can live with the copies for now.

Thread Thread
daviddalbusco profile image
David Dal Busco Author

Ah polyfill, that explains why I did not had any issue 😉.

Thanks for the feedback.