Skip to content
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

Update webpack extend warning. #2660

Merged
merged 3 commits into from
Jan 5, 2018
Merged

Update webpack extend warning. #2660

merged 3 commits into from
Jan 5, 2018

Conversation

Alfredo-Delgado
Copy link
Member

Documentation update:

Flesh out the repercussions of replacing module rules.

Flesh out the repercussions of replacing module rules.
@codecov
Copy link

codecov bot commented Jan 5, 2018

Codecov Report

Merging #2660 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2660   +/-   ##
=======================================
  Coverage   34.34%   34.34%           
=======================================
  Files         389      389           
  Lines        8750     8750           
  Branches      927      904   -23     
=======================================
  Hits         3005     3005           
- Misses       5107     5140   +33     
+ Partials      638      605   -33
Impacted Files Coverage Δ
app/react/src/server/config/babel.js 0% <0%> (-100%) ⬇️
lib/core/src/client/preview/config_api.js 46.55% <0%> (ø) ⬆️
app/react/src/client/preview/error_display.js 54.54% <0%> (ø) ⬆️
addons/links/src/react/components/link.js 78.78% <0%> (ø) ⬆️
...ddons/actions/src/containers/ActionLogger/index.js 49.25% <0%> (ø) ⬆️
app/react-native/src/bin/storybook.js 0% <0%> (ø) ⬆️
addons/info/src/components/types/PropertyLabel.js 78.94% <0%> (ø) ⬆️
lib/ui/src/modules/ui/libs/filters.js 48.64% <0%> (ø) ⬆️
addons/knobs/src/angular/helpers.js 0% <0%> (ø) ⬆️
.../ui/components/stories_panel/stories_tree/index.js 38.73% <0%> (ø) ⬆️
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b15786c...39b4895. Read the comment docs.

@@ -38,7 +38,7 @@ Since this config file stays in the Storybook directory, you need to set the inc

You also need to install the loaders (style, css, and sass) used in above config manually.

> Once you create this `webpack.config.js` file, Storybook won't load the [default Webpack config](/configurations/default-config/) other than loading JS files with the Babel loader.
> Once you create this `webpack.config.js` file, Storybook won't load the [default Webpack config](/configurations/default-config/) other than loading JS files with the Babel loader. This will disable included functionality like svg loading. Read on to learn how to [retain defaults](#full-control-mode--default).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extend mode retains defaults as well

Copy link
Member Author

@Alfredo-Delgado Alfredo-Delgado Jan 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I discovered a regression and the existing documentation contradicts that. This is the existing documentation: Once you create this webpack.config.js file, Storybook won't load the default Webpack config other than loading JS files with the Babel loader. I've only extended it to highlight the kind of functionality that's lost when this happens and link to the better solution down the page.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant that there's a sense in linking to #extend-mode instead, but now I see that this is already in this section. It's quite weird actually, need to investigate why is it so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nevermind. I actually was wrong and extend mode extends baseConfig, not the default one

@Hypnosphi Hypnosphi merged commit 44a7a02 into master Jan 5, 2018
@Hypnosphi Hypnosphi deleted the Alfredo-Delgado-patch-1 branch January 5, 2018 20:47
Hypnosphi added a commit that referenced this pull request Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants