HbuilderX vue项目修改端口配置问题
废话不多说,直接开干!知识点“serve”: “vue-cli-service serve --port 8089”,找到项目中package.json文件{"name": "default","version": "0.1.0","private": true,"scripts": {"serve": "vue-cli-service serve --port 8089", //这里加个端口即可
·
废话不多说,直接开干!
知识点
“serve”: “vue-cli-service serve --port 8089”,
找到项目中package.json文件
{
"name": "default",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 8089", //这里加个端口即可
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^2.6.5",
"vue": "^2.6.10"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.8.0",
"@vue/cli-service": "^3.8.0",
"vue-router": "^3.5.3",
"vue-template-compiler": "^2.6.10"
}
}
看下运行结果
更多推荐
已为社区贡献1条内容
所有评论(0)