Created
February 1, 2020 18:37
-
-
Save DKrepsky/e9c0ae279eb7ec61adda966735ff0de6 to your computer and use it in GitHub Desktop.
Fix Vue webpack dev server net::ERR_CONNECTION_REFUSED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install IP package: | |
``` | |
npm install ip --save-dev | |
``` | |
Add dev server config to vue.config.js | |
```js | |
module.exports = { | |
publicPath: '', | |
devServer :{ | |
host : require("ip").address(), | |
disableHostCheck : true | |
} | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment