[Vuejs]-How to make my VueCLI webpack-simple accessible in LAN (192.168.1.73:8080)?

2👍

In your package.json, change the dev script.

By default, it is:

cross-env NODE_ENV=development webpack-dev-server --open --hot

Which defaults to localhost, so you can use this:

cross-env NODE_ENV=development webpack-dev-server --open --hot --host 0.0.0.0

Leave a comment