Hi, does someone know how to disable hostcheck for...
# javascript
r
Hi, does someone know how to disable hostcheck for the webpack devserver(https://webpack.js.org/configuration/dev-server/#devserverdisablehostcheck)? I tried adding
config.devServer.disableHostCheck=true
in a webpack config snippet, but It tells me that disableHostCheck is not a valid property. I don't have much experience with webpack but from what I understand what I did should work.
t
Valid script:
Copy code
if (!!config.devServer) {
  config.devServer.disableHostCheck=true
}
Basause
devServer
doesn’t exist in
build
task
If
disableHostCheck
doesn’t exist in
webpack-dev-server
4, you will see allowed options in error message