- Notifications
You must be signed in to change notification settings - Fork476
🛠️ The recommended way to start a Vite-powered Vue project
License
vuejs/create-vue
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The recommended way to start a Vite-powered Vue project
To create a new Vue project usingcreate-vue
, simply run the following command in your terminal:
npm create vue@latest
Note
(@latest
or@legacy
) MUST NOT be omitted, otherwisenpm
may resolve to a cached and outdated version of the package.
By default the command will run in interactive mode, but you can also provide feature flags in the CLI arguments to skip the prompts. Runnpm create vue@latest --help
to see all available options.
If you need to support IE11, you can create a Vue 2 project with:
npm create vue@legacy
Vite-Powered: Vue CLI is based on webpack, while
create-vue
is based onVite. 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 webpackhere.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 theVite plugin ecosystem which is Rollup-compatible.
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 onVueSchool.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 theAwesome Vite GitHub page.
About
🛠️ The recommended way to start a Vite-powered Vue project
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.