Nuxt Assets

up:: Nuxt

public/ Directory

Directory that will be served and just stay as it is. No minification, no optimisation. It is directly available at the url.


  • robots.txt
  • favicon.ico

assets/ Directory

Is processed by compilers, eg. file minification or image optimisation.


  • With a tilde: ~/assets/image.jpg
  • Or, an alias in nuxt.config (@ is common)

On every build, this gets re-built.


  • images
  • stylesheets
  • fonts