Home  >  Q&A  >  body text

Simplifying Vue file structure: Help with Vue & Vite

<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>
P粉174151913P粉174151913396 days ago421

reply all(1)I'll reply

  • P粉685757239

    P粉6857572392023-08-26 10:49:01

    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

    reply
    0
  • Cancelreply