-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Custom webpack configs: "Full control + remote" mode #2836
Comments
@hollandmatt, this third parameter is a feature that was introduced only this week and wasn't yet released in any official release. You can use a previous option (it was removed from the docs in favor of a new one) const genDefaultConfig = require('@storybook/react/dist/server/config/defaults/webpack.config.js');
module.exports = (baseConfig, env) => {
const defaultConfig = genDefaultConfig(baseConfig, env);
// ....
} |
@igor-dv So it's just that the docs are ahead of the NPM package? I did end up getting it to work as you suggest. |
Yeah. Probably a new feature will be released this weekend. CC. @shilman , @Hypnosphi |
OK, sounds good! Should we leave this open until the release is made public, "for the record", and then close it? |
I'll mark it as merged and it will be closed once the release is out (I hope 😬) |
Released as alpha |
guys, it took me hours to figure out that the docs are not in sync with your current stable release. Just saying. Others will most likely have similar problems and won't be able to get started because the docs basically tell you something that is not true (yet). Maybe it's a good idea to fix the docs? Or at least provide a big fat warning that they are for the current alpha release? |
I have to add a more mean comment than my predecessor. This is very unprofessional and completely unacceptable. It's everything that is wrong with the javascript ecosystem and community. Storybook is quite a popular library and should lead the way and inspire good engineering practices. But I guess I should set the default bar for a javascript library at "hobby project" for my own sanity in the future. I apologize if this is too harsh but it has cost me an entire afternoon. |
@ndelangen @storybooks/team how can we set up deploying https://storybooks.js.org from release branch instead of master?
Yes this is. I'm sorry we cost you your time though. |
@Hypnosphi I believe running Not sure what the normal deploy process is for pages though |
Looks like automated deploy was set up recently, so even if I deploy manually from release branch, it will get overwritten with automatic deploy from master |
thanks for looking into it! |
I published docs manually from release branch. It should reflect current stable release state since now We're going to make https://storybook.js.org a mirror of https://storybooks.netlify.com/ which is deployed from release branch authomatically |
@Hypnosphi thank you for doing this! |
@Hypnosphi @igor-dv I am getting that error in I am in 3.4.3 and |
Your webpack config in the |
Thanks @igor-dv I was thinking same thing, it's just partial. So is there any way I can get the final storybook webpack config file path which required by "jestWebpackResolver"? |
Issue details
According to the documentation, it is possible to customize the webpack config used by Storybook like so: https://storybook.js.org/configurations/custom-webpack-config/#full-control-mode--default
Steps to reproduce
.storybook/webpack.config.js
npm run storybook
Seems like the third parameter to the function is not supplied?
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/react
3.3.10Affected platforms
The text was updated successfully, but these errors were encountered: