webpack server: add disableHostCheck option (#915)

Allow server to be accessed from anywhere, which is useful for
testing.  This potentially reveals the source code to the world,
but this should not be a concern for testing open-source software.
This commit is contained in:
Erik Demaine
2017-10-05 15:26:49 -04:00
committed by GitHub
parent 2e27d4248b
commit c4fed02329

View File

@@ -55,5 +55,9 @@ module.exports = {
stats: {
colors: true,
},
// Allow server to be accessed from anywhere, which is useful for
// testing. This potentially reveals the source code to the world,
// but this should not be a concern for testing open-source software.
disableHostCheck: true,
},
};