Closed bravo-kernel closed 5 years ago
To prevent Invalid Host Header
error message also set disableHostCheck
option in build/webpack.dev.conf.js
to true
:
devServer: {
disableHostCheck: true,
// other options
}
I would prefer not having to change webpack.dev.conf.js
. Any suggestions? The 0.0.0.0 is needed for e.g. running inside Vagrant virtual machines.
This project is generated from vuejs-templates/webpack. Your request might be better go there. For this repo, just fork and modify at your desire.
Adding this as a note for future visitors. To change the host and/or port start the development server using one of the following commands: