create-vue

启动 Vite 驱动的 Vue 项目的推荐方法。「🛠️ The recommended way to start a Vite-powered Vue project」

Github星跟踪图

create-vue

The recommended way to start a Vite-powered Vue project

Usage

To create a new Vue project using create-vue, simply run the following command in your terminal:

npm create vue@latest

[!NOTE]
(@latest or @legacy) MUST NOT be omitted, otherwise npm may resolve to a cached and outdated version of the package.

Or, if you need to support IE11, you can create a Vue 2 project with:

npm create vue@legacy

[!WARNING]
Vue 2 Has Reached End of Life

Difference from Vue CLI

  • Vite-Powered: Vue CLI is based on webpack, while create-vue is based on Vite. Vite supports most of the configured conventions found in Vue CLI projects out of the box, and provides a significantly better development experience due to its extremely fast startup and hot-module replacement speed. Learn more about why we recommend Vite over webpack here.

  • Scaffolding Tool: Unlike Vue CLI, create-vue itself is just a scaffolding tool. It creates a pre-configured project based on the features you choose, and delegates the rest to Vite. Projects scaffolded this way can directly leverage the Vite plugin ecosystem which is Rollup-compatible.

Migrating from Vue CLI

If you're transitioning from Vue CLI to Create Vue, we've got you covered. Here are some resources to help you with the migration:
How to Migrate from Vue CLI to Vite

  • Vue CLI to Vite Migration Guide: A comprehensive guide on migrating from Vue CLI to Vite, available on VueSchool.io
  • Tools and Plugins for Migration: For a smoother transition, check out the list of tools and plugins designed to assist with the migration process on the
    Awesome Vite GitHub page.

主要指标

概览
名称与所有者vuejs/create-vue
主编程语言Vue
编程语言 (语言数: 6)
平台
许可证Other
所有者活动
创建于2021-07-14 07:58:55
推送于2025-05-07 05:39:01
最后一次提交
发布数93
最新版本名称v3.16.4 (发布于 2025-04-07 22:17:32)
第一版名称v3.0.0-alpha.2 (发布于 2021-08-11 17:30:42)
用户参与
星数4.1k
关注者数33
派生数474
提交数880
已启用问题?
问题数255
打开的问题数23
拉请求数403
打开的拉请求数8
关闭的拉请求数70
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?