Skip to content

Commit

Permalink
disableHostCheck for webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
wac925 committed Jan 18, 2019
1 parent 22899cf commit d8ba432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/HMRDetectPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = class HMRDetectPlugin {

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

if (!Helpers.isHmr()) {
Expand Down
1 change: 1 addition & 0 deletions src/recipes/devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
});
},
contentBase: path.resolve(process.cwd(), 'public'),
disableHostCheck: true,
host: 'localhost',
hot: true,
historyApiFallback: false,
Expand Down

0 comments on commit d8ba432

Please sign in to comment.