Is the project created by cli3 vue2 or vue3?
CLI 3 Is the project created using Vue 2 or Vue 3?
In the process of using Vue.js for web development, Vue CLI serves as an important tool to help us create Vue projects. However, during the process of creating a project, some developers may have questions: Is a project created using Vue CLI 3 Vue 2 or Vue 3?
Before answering this question, you need to understand the difference between Vue CLI 3 and Vue CLI 2. Vue CLI 2 is a command line tool for Vue 2, used to create and manage Vue 2-based projects. Vue CLI 3 is a brand new command line tool that not only supports Vue 2, but also Vue 3.
The design concept of Vue CLI 3 is "plug-in", which means that when creating a project, we can choose different plug-ins according to our needs to complete the construction of the project. Therefore, Vue CLI 3 does not force us to choose between Vue 2 or Vue 3 when creating a project. Instead, it provides different preset options for us to choose from, including:
- Default (Vue 2)
- Default (Vue 3)
- Manually select features
As you can see, in the default preset options of Vue CLI 3, we can choose to use Vue 2 or Vue 3. If you select Default (Vue 2), the created project is based on Vue 2; if you select Default (Vue 3), the created project is based on Vue 3. In addition, if we choose Manually select features, we can also custom-select the required functions and plug-ins.
Of course, if we have determined to use Vue 2 or Vue 3, we can also directly use the following command to create the project:
Vue 2 project:
vue create my-project
Vue 3 project:
vue create my-project --preset=@vue/cli-plugin-vue-next
In general, projects created using Vue CLI 3 can be based on Vue 2 or Vue 3. When creating a project, you can freely choose preset options or manually select the required functions and plug-ins. If you need to create a Vue 3 project, you need to use specific commands or preset options.
The above is the detailed content of Is the project created by cli3 vue2 or vue3?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses useEffect in React, a hook for managing side effects like data fetching and DOM manipulation in functional components. It explains usage, common side effects, and cleanup to prevent issues like memory leaks.

The article explains React's reconciliation algorithm, which efficiently updates the DOM by comparing Virtual DOM trees. It discusses performance benefits, optimization techniques, and impacts on user experience.Character count: 159

Higher-order functions in JavaScript enhance code conciseness, reusability, modularity, and performance through abstraction, common patterns, and optimization techniques.

The article discusses currying in JavaScript, a technique transforming multi-argument functions into single-argument function sequences. It explores currying's implementation, benefits like partial application, and practical uses, enhancing code read

Article discusses connecting React components to Redux store using connect(), explaining mapStateToProps, mapDispatchToProps, and performance impacts.

The article explains useContext in React, which simplifies state management by avoiding prop drilling. It discusses benefits like centralized state and performance improvements through reduced re-renders.

Article discusses preventing default behavior in event handlers using preventDefault() method, its benefits like enhanced user experience, and potential issues like accessibility concerns.

The article discusses implementing custom hooks in React, focusing on their creation, best practices, performance benefits, and common pitfalls to avoid.
