xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-11-27 11:30  xgqfrms  阅读(84)  评论(0编辑  收藏  举报