# create-vue **Repository Path**: itjiuping/create-vue ## Basic Information - **Project Name**: create-vue - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: feat-more-typecheck-options - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-25 - **Last Updated**: 2024-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # create-vue 推荐由Vite驱动的启动Vue项目方式

## 使用方式 ```sh npm create vue@3 ``` 或者,如果你需要支持IE11,你可以通过运行下方命令来创建一个Vue 2项目。 ```sh npm create vue@2 ``` 请注意,版本号(`@3` or `@2`)必须包含在内,否则npm可能会解析并使用该包的缓存且已过时的版本。 ## 与Vue CLI的区别 - Vue CLI基于webpack,而`create-vue` 基于[Vite](https://vitejs.dev/). Vite开箱即支持Vue CLI项目中发现的大多数配置约定,并且由于其极快的启动速度和热模块替换速度,提供了显著更好的开发体验。在[这里](https://vitejs.dev/guide/why.html)了解更多我们为什么推荐Vite而不是webpack的原因。 - 与Vue CLI不同,`create-vue`本身只是一个脚手架工具:它根据你选择的功能创建一个预配置的项目基础,并将其余部分委托给Vite。通过这种方式构建的项目可以直接利用与Rollup兼容的[Vite插件生态系统](https://vitejs.dev/plugins/) . ## 从Vue CLI迁移 - [Vue CLI -> Vite 的迁移指南,请参考VueSchool.io](https://vueschool.io/articles/vuejs-tutorials/how-to-migrate-from-vue-cli-to-vite/) - [帮助自动迁移的工具/插件](https://github.com/vitejs/awesome-vite#vue-cli)