Skip to main content
InterviewHubPRO
Section Overview
Q12

Question 12 of 50

Part 1: Nuxt 3 Fundamentals (Junior / Entry-Level)

24%
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 for robots.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).