vue development intranet access

# Find package.json in the root directory

Add --host 0.0.0.0 after dev in scripts

  "scripts": {
    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0",
  },


# Restart the project, the mobile phone in the same LAN access http: // [computer ip]: [project port]

Published 32 original articles · praised 0 · visits 499

Guess you like

Origin blog.csdn.net/weixin_42863549/article/details/105593863