Simplifying Vue file structure: Help with Vue & Vite
P粉174151913
2023-08-25 23:15:00
<p>I just created my first Vue application using the Vite packaging tool. I am used to using the Webpack packaging tool and Vue CLI to create Vue projects, which can directly generate the folders and files of VueX and Vue Router. However, when I create a Vue application using Vite, I only get a minimal folder structure. </p>
<p>Is there a way to automatically generate files for VueX and Vue Router in Vite? </p>
Vue CLI is a project generation framework that configures build tools and makes installing libraries easy. Vite is just a build tool.
You need to set everything up from scratch, or use a template like: https://github.com/antfu/vitesse