-
-
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
extend devMiddlewareOptions with config.devServer #723
extend devMiddlewareOptions with config.devServer #723
Conversation
0ee982e
to
ec6c41e
Compare
I need to take a look at this, I wondering if there's a way to add tests for this? |
i'll give it a shot |
Awesome! I'll try to review it regardless. |
^_~ |
Thank you @moimikey ! |
👍 🌈 |
@@ -25,6 +25,7 @@ export default function (configDir) { | |||
noInfo: true, | |||
publicPath: config.output.publicPath, | |||
watchOptions: config.watchOptions || {}, | |||
...config.devServer, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
notes
since
devMiddlewareOptions
is pretty much the same asdevServer
, this simply allows a webpack config to naturally usedevServer
to override the defaultdevMiddlewareOptions
fixes #650