vue-cli-service相关配置说明
vue-cli-service:
在脚手架的package.json中,serve配置的是与项目启动相关的信息:
--open 在服务器启动时打开浏览器
--copy 在服务器启动时将 URL 复制到剪切版
--mode 指定环境模式 (默认值:development)
--host 指定 host (默认值:0.0.0.0)
--port 指定 port (默认值:8080)
--https 使用 https (默认值:false)
具体使用:
"serve": "vue-cli-service serve --open --host localhost --port 8080",
更多命令:
vue-cli-service serve help 可查看