Skip to content

extend devMiddlewareOptions with config.devServer#723

Merged
ndelangen merged 6 commits intostorybookjs:masterfrom
moimikey:extend-webpack-middleware
Apr 12, 2017
Merged

extend devMiddlewareOptions with config.devServer#723
ndelangen merged 6 commits intostorybookjs:masterfrom
moimikey:extend-webpack-middleware

Conversation

@moimikey
Copy link
Copy Markdown
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 moimikey force-pushed the extend-webpack-middleware branch from 0ee982e to ec6c41e Compare March 13, 2017 17:39
@moimikey
Copy link
Copy Markdown
Contributor Author

@arunoda @mnmtanish

@ndelangen
Copy link
Copy Markdown
Member

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

@moimikey
Copy link
Copy Markdown
Contributor Author

i'll give it a shot

@ndelangen
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Thank you @moimikey !

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

👍 🌈

@shilman shilman added the misc label May 27, 2017
Comment thread src/server/middleware.js
noInfo: true,
publicPath: config.output.publicPath,
watchOptions: config.watchOptions || {},
...config.devServer,
Copy link
Copy Markdown

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
Copy Markdown
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