vue-cli 4, @vue/cli, yarn 常用命令

创建项目:

vue create my-project

运行开发版本:

cd my-project
yarn serve

编译生产版本:

yarn build

什么是 Vue CLI 服务?

The Vue CLI Service is a run-time dependency (@vue/cli-service) that abstracts webpack and provides default configurations. It can be upgraded, configured and extended with plugins.

前面已经看到了,yarn serve, yarn build, 这些都是 Vue CLI 服务。

发布了188 篇原创文章 · 获赞 88 · 访问量 58万+

猜你喜欢

转载自blog.csdn.net/henryhu712/article/details/104082608