Short answer
Vue.js is the framework that draws the interface, and Vite is the build tool that serves and bundles the project. They are not substitutes. Vue's current create-vue scaffold is a Vite setup, and Vite's own scaffold can start Vue, React, Svelte, and other templates. Pick Vue for the UI model. Pick Vite, or another bundler, for the files around it.
Last verified against the sources listed below.
Key takeaways
- Vue is a JavaScript framework for user interfaces. Vite is a build tool with a dev server and a production build.
- create-vue is the official Vue scaffold, and the docs say that project uses Vite.
- Vue CLI is webpack-based and in maintenance mode. New Vue projects are steered to Vite.
- As of December 2026, the Vue quick start asks for a newer Node.js than Vite's own minimum.
- A runtime-only Vue build omits the template compiler. The tooling page says that path adds about 14kb when you ship the full build instead.
Vue js vs Vite is a pair of names people set side by side, but one draws the interface and the other builds the files. Use both when you want a Vue app with a dev server. Do not drop Vue and expect Vite alone to become the framework.
The verdict is a stack, not a winner. Vue owns the components and the reactivity.
Vite owns the dev server and the production bundle. Vue’s current official scaffold already uses Vite.
What does each one do?
Vue is a JavaScript framework for user interfaces. Vite is a build tool with a dev server and a production build command.
The Vue introduction says you are reading the Vue 3 docs, and that Vue 2 support ended on Dec 31, 2023. Vue builds on HTML, CSS, and JavaScript, with declarative rendering and reactivity.
Components can use the Options API or the Composition API. Single-file components use the .vue extension and hold script, template, and style.
Vite’s getting started page says the name is French for quick, pronounced like veet. It has two parts: a dev server with fast hot module replacement over native ES modules, and a build command that bundles with Rolldown.
During development it targets esnext. For this major, production targets Baseline Widely Available browsers from around mid-2023, and the injected dev runtime uses features that were Baseline Newly Available on 2026-01-01.
| Vue | Vite | |
|---|---|---|
| Job | UI framework | Build tool |
| You write | Components, state, templates | Config, entry HTML, plugins |
| Official start, as of December 2026 | npm create vue@latest |
npm create vite@latest |
| Replaces the other? | No | No |
Does Vite replace Vue?
No. Vite does not render a Vue component by itself, and Vue does not bundle a production folder by itself.
The tooling guide calls Vite a build tool with first-class Vue single-file component support, created by Evan You, who also created Vue. The Vue plugin for that support is @vitejs/plugin-vue.
Vue CLI, the webpack toolchain, is in maintenance mode. The page recommends Vite for new projects unless you need a webpack-only feature.
Without a build step, templates are compiled in the browser, so you ship the compiler. Files named vue.runtime.* are runtime-only and omit that compiler.
The tooling page says a full build increases the payload by about 14kb. Default setups use the runtime-only build because single-file components are compiled ahead of time.
MDN’s JavaScript execution model separates the engine, which runs the language, from the host, such as the browser DOM or Node.js. Vite’s dev server sends modules to that browser host. It is not the host, and it is not Vue.
What does the current scaffold use?
The current Vue scaffold is Vite. That is what the quick start and the tooling page both say.
Quick Start tells you to run npm create vue@latest, or the pnpm, yarn, bun, or vp equivalent. The command runs create-vue. Prompts cover TypeScript, JSX, Vue Router, Pinia, Vitest, an end-to-end tool, ESLint, Prettier, and an experimental Vue DevTools prompt.
The generated examples use the Composition API and script setup, not the Options API. npm run dev starts the app. npm run build writes ./dist.
If you skip server rendering, the same page says you can simply use Vite, which is what that scaffold does. It also says Vue frameworks often use Vite under the hood, and that a framework can still be worth it when you want features such as a UI theme.
Vite’s own command is npm create vite@latest. You can pass --template vue to skip some prompts.
The manual install is npm install -D vite, an index.html, and npx vite, which serves that file at http://localhost:5173. Default scripts are dev, build, and preview.
Which Node.js line applies?
Install a Node.js that satisfies the command you run. The two docs do not print the same minimum.
As of December 2026, Vue’s quick start requires Node.js ^22.18.0 or >=24.12.0. Vite requires Node.js 20.19+ or 22.12+, and warns that some templates ask for more. A machine that only meets Vite’s floor can still be too old for the Vue quick start.
Node.js describes itself as an asynchronous, event-driven JavaScript runtime for network applications. That runtime is what executes npm run dev on your machine. It is a third piece, beside the Vue library and the Vite tool.
Which should you choose?
Choose Vue when the task is the interface. Choose Vite when the task is the dev server and the bundle. Most new Vue apps in these docs take both.
- Pick create-vue when you want Vue single-file components, and say yes only to the prompts you need.
- Pick
npm create vitewith a non-Vue template when the UI library is React, Svelte, or something else. Vite’s template list is the proof that Vite is not a Vue-only tool. - Stay on Vue CLI only when an existing app depends on webpack-only behavior.
- Skip the build step only for a small enhancement of static HTML, and accept the full build that includes the compiler.
JavaScript is the language both the framework and the build tool sit on.
Next.js vs Vue compares two frameworks. That is a different pair from a framework and its build tool.
An SVG still has to become code a bundler can ship. The SVG to JSX converter turns an SVG into a component. The output is JavaScript for a front-end build, including a Vite project that is not using Vue.
Frequently asked questions
Can I use Vue without Vite?
Yes. The Vue introduction says you can enhance static HTML with no build step, and the tooling page explains in-browser template compilation for that case. You then ship a full build that includes the compiler. The same page says the default tooling uses the runtime-only build because single-file components are compiled ahead of time. Vite is the recommended build step for new work, not a requirement of the Vue runtime itself.
Is npm create vite the same as npm create vue?
No. npm create vue@latest runs create-vue, which the Vue docs call the official scaffolding tool, and that project is Vite-based. npm create vite@latest is Vite's own scaffolder. Its guide lists templates such as vanilla, vue, react, preact, lit, svelte, solid, and qwik, plus TypeScript variants. A Vue plus Vite app can start from either command. The prompts and the extra Vue options are not identical.
Which Node.js version should I install?
Read the page for the command you will run. As of December 2026, the Vue quick start lists Node.js ^22.18.0 or >=24.12.0 before create-vue. The Vite guide says Vite requires Node.js 20.19+ or 22.12+, and that some templates need a higher version if the package manager warns. Meeting only the lower Vite line can still fail the Vue quick start.
Does Vite replace Vue Router or Pinia?
No. Those are Vue libraries. create-vue asks whether to add Vue Router and Pinia as optional prompts. Vite does not implement routes or a store. It serves modules in development and bundles the production assets. If you decline those prompts, you still have a Vue app. You just do not have the router or the store until you add them yourself.
Why do the docs mention Vue CLI at all?
Vue CLI is the older official webpack toolchain. The tooling page says it is in maintenance mode and recommends Vite for new projects unless you depend on a webpack-only feature. The Vue CLI site repeats that advice and points new work at create-vue. An existing Vue CLI app can stay on webpack. A new app does not need to start there.
Sources
- Introduction · Vue.js, 2026
- Quick Start · Vue.js, 2026
- Tooling · Vue.js, 2026
- Getting Started · Vite, 2026
- About Node.js · Node.js, 2026
- JavaScript execution model · MDN, 2026