Vite outputs production build files into the dist folder by default.
Vite uses native ES modules in the browser for development, enabling faster HMR without rebundling. Vue CLI bundles code with webpack before serving, which is slower for HMR.
The correct way to create a Vue 3 project with Vite is using npm create vite@latest my-vue-app -- --template vue. Other commands are either Vue CLI commands or invalid.
'vue serve' is a command provided by Vue CLI's global tools and is not part of Vite. Vite uses 'vite' commands for serving projects.
Vue CLI exposes environment variables that start with VUE_APP_. Vite exposes variables starting with VITE_. This prevents accidental exposure of sensitive data.
