Vue 3 - 03 创建项目

4/27 Vue 3 创建项目

创建项目

# 创建项目目录
$ vue create mytest
$ cd mytest
# 项目初始化
$ yarn init
# 启动项目
$ yarn serve

yarn run v1.22.18
$ vue-cli-service serve
 INFO  Starting development server...


 DONE  Compiled successfully in 6699ms                                     12:50:23 ├F10: AM┤



  App running at:
  - Local:   http://localhost:8080/
  - Network: http://192.168.1.4:8080/

  Note that the development build is not optimized.
  To create a production build, run yarn build.

打包项目

$ yarn build
凡所有相,皆是虚妄。

推荐阅读