how to enable vue cli auto open the localhost url

how to enable vue cli auto open the localhost URL

bad

you must click the link by manually, waste of my time

good

auto open the localhost URL, as create-react-cli did

solution

// package.json

  "scripts": {
    "dev": "yarn open && yarn serve",
    "open": "open http://localhost:8080/",
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint"
  },

# ✅🚀👍🎉
$ yarh dev

Jest

https://cli.vuejs.org/config/#jest

refs

issues

https://new-issue.vuejs.org/?repo=vuejs/vue-cli

https://stevencotterill.com/snippets/vue-cli-using-a-custom-domain/

https://www.sitepoint.com/vue-cli-intro/v



©xgqfrms 2012-2020

www.cnblogs.com 發佈文章使用:只允許註冊用戶纔可以訪問!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章