Skip to content

Commit d8ba432

Browse files
committed
disableHostCheck for webpack-dev-server
webpack/webpack-dev-server#1604
1 parent 22899cf commit d8ba432

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/plugins/HMRDetectPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = class HMRDetectPlugin {
5555

5656
// Make sure this hook runs at very beginning but once
5757
compiler.hooks.entryOption.tap('HMRDetectPlugin', () => {
58-
// Always delete the `hot` on startup
58+
// Always delete the `hot` file on startup
5959
deleteHotFile();
6060

6161
if (!Helpers.isHmr()) {

src/recipes/devServer.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
});
2323
},
2424
contentBase: path.resolve(process.cwd(), 'public'),
25+
disableHostCheck: true,
2526
host: 'localhost',
2627
hot: true,
2728
historyApiFallback: false,

0 commit comments

Comments
 (0)