[Vuejs]-Do we need all files and folders while re-desiging Nuxt JS site?

1đź‘Ť

âś…

To develop on a NuxtJS site, you need the directories and files listed in the Nuxt guide’s Directory Structure section. The files you don’t need for future development are the files in the default .gitignore that create-nuxt-app generates for you, including the dist directory and the node_modules directory.

The dist directory can be regenerated from your source code using npm run generate and node_modules from running npm install if you have package.json or package-lock.json file. Anything that can be generated from some other file(s), you don’t need to keep.

  • Is there any way I can like recover “pages” folder from my final production site?

    • Unfortunately not.
  • What will be best practice to manage NuxtJS projects?

    • Not sure what you mean with “manage”, but if you don’t use git yet, then git.
👤D Malan

Leave a comment