-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
docs(config) document devServer options injectClient and injectHot #2996
Conversation
Preview is ready Built with commit ef09119 https://deploy-preview-2996--webpackjsorg-netlify.netlify.com |
module.exports = { | ||
//... | ||
devServer: { | ||
injectHot: (compilerConfig) => compilerConfig.name === 'only-include' |
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.
Please add hot
because injectHot
is used when HMR is enabled.
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.
Great catch @hiroppy
I've pushed an update
}; | ||
``` | ||
|
||
W> Make sure that [`devServer.hot`](#devserverhot) is set to `true` because `devServer.injectHot` only works with HMR. |
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.
W>
?
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.
You can see it in preview mate, or check out https://webpack.js.org/contribute/writers-guide
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.
Oops, thank you for the explanation.
We have released [email protected], so I remove |
Amazing, ty @hiroppy |
Thanks everyone invlolved |
Takes two off #2974
Documents devServer options injectClient and injectHot
ON HOLD due to waiting dev server release.