How to turn on remote mode in webpack-dev-server in vue-cli

after starting with webpack-dev-server, you can only use localhost to access it. Even if you change the dev host of index.js under config to other machines in IP, LAN, you cannot access it through this IP address. Can you set it so that other users on the LAN can also access projects that have started server?

/ / the version of webpack is "^ 3.6.0" and the version of webpack-dev-server is ^ 2.9.1. I have tried some methods said on the Internet, but they cannot be implemented. The contents of
package.json are as follows:

 "scripts": {
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
    "start": "npm run dev",
    "build": "node build/build.js"
  },

webpack-dev-server-- host 0.0.0.0
devserver-host

Menu