Nuxt & Universal SSR (50 Qs)•Part 1: Nuxt 3 Fundamentals (Junior / Entry-Level)
What is the difference between the `public/` and `assets/` directories?
junior LevelVue & Nuxt
In Simple Words:
public/: Files are served as-is at the root URL path without any compilation, bundling, or hash renaming. Used forrobots.txt,favicon.ico,sitemap.xml, and legacy scripts.assets/: Files (SCSS, Less, SVG icons, images) are processed by Vite. Images can be optimized, CSS is minified and prefixed, and filenames receive content hashes for immutable browser caching (app.a1b2c3d4.css).