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

extend devMiddlewareOptions with config.devServer #723

Merged
merged 6 commits into from
Apr 12, 2017

Conversation

moimikey
Copy link
Contributor

notes

since devMiddlewareOptions is pretty much the same as devServer, this simply allows a webpack config to naturally use devServer to override the default devMiddlewareOptions

fixes #650

@moimikey
Copy link
Contributor Author

@arunoda @mnmtanish

@ndelangen
Copy link
Member

I need to take a look at this, I wondering if there's a way to add tests for this?

@moimikey
Copy link
Contributor Author

i'll give it a shot

@ndelangen
Copy link
Member

Awesome! I'll try to review it regardless.

@ndelangen ndelangen mentioned this pull request Mar 28, 2017
@ndelangen ndelangen self-assigned this Mar 28, 2017
@moimikey
Copy link
Contributor Author

^_~

@ndelangen ndelangen added this to the v3.0.0 milestone Apr 12, 2017
@ndelangen ndelangen merged commit d0efb70 into storybookjs:master Apr 12, 2017
@ndelangen
Copy link
Member

Thank you @moimikey !

@moimikey moimikey deleted the extend-webpack-middleware branch April 12, 2017 20:21
@moimikey
Copy link
Contributor Author

👍 🌈

@shilman shilman added the misc label May 27, 2017
@@ -25,6 +25,7 @@ export default function (configDir) {
noInfo: true,
publicPath: config.output.publicPath,
watchOptions: config.watchOptions || {},
...config.devServer,
Copy link

Choose a reason for hiding this comment

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

Where can I pass the config.devServer to, to manipulate these configurations?

Copy link
Member

Choose a reason for hiding this comment

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

Should be in the webpack.config.js export I'm pretty sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants