1.更改一下webpack端口配置就可以了
兩個頁面:
頁面1.config中的index.js頁面 更改下port:端口
頁面2.package.json頁面 更改端口
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --open --port
9090",
"start": "npm run dev",
"lint": "eslint --ext .js,.vue src",
"build": "gulp"
},