Skip to content
davidjamesstone edited this page Sep 24, 2016 · 1 revision

Static files

The Inert plugin is used for static file and directory handling in hapi.js.

Three public static directories are declared by default:

  • server/public/static (Add any static files in here e.g. images)
  • server/public/build (Contains build output files e.g. bundle.js, build.css)
  • server/public/assets (Contains files copied as part of a build task but e.g. jquery copied in from node_modules/jquery)

Only the first directory is added to source control. The build and assets directories are added to .gitignore.

These are only meant as a starting point. Alterations can be made in server/routes/public/.js