-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable mangled component names during build-storybook #363
Comments
It's happening because component names are getting minified. It's done by the uglifyjs plugin here. You can remove that plugin with the "ful-control" mode to fix the issue. A better solution is to set the |
I think thanish has the answer. Check the storybook-addon repo's issues for more info on this. |
Hey guys, While the displayName solution works in most cases, it appears it does not work for components passed as props. Here it should be:
But instead it's:
Despite giving it Is it possible to override the mangle without having to use Thanks |
Hey,
When you build a static storybook the component names get mangled, as seen here: http://uikit-react.io/
This is suboptimal when using the React Storybook Info Addon
I've tried to use the "full-control" mode but without luck.
Here's the webpack config for the storybook: https://github.com/stipsan/uikit-react/blob/master/.storybook/webpack.config.js
The text was updated successfully, but these errors were encountered: