:::: 개발 ::::/::: Vue:::

vue 서버 (개발/운영) 구분

nayha 2019. 4. 11. 18:11
반응형

vue-cli-service serve

Usage: vue-cli-service serve [options] [entry]

Options:

  --open    open browser on server start
  --copy    copy url to clipboard on server start
  --mode    specify env mode (default: development)
  --host    specify host (default: 0.0.0.0)
  --port    specify port (default: 8080)
  --https   use https (default: false)
--copy

예)

package.json

  "scripts": {
    "build": "vue-cli-service build",
    "dev": "vue-cli-service serve --open --port 8888 --mode dev ",
    "prd": "vue-cli-service serve --open --port 9999 --mode prd "
  },

 

반응형