API: The dir Property

  • Type: Object
  • Default:
  1. {
  2. assets: 'assets',
  3. app: 'app',
  4. layouts: 'layouts',
  5. middleware: 'middleware',
  6. pages: 'pages',
  7. static: 'static',
  8. store: 'store'
  9. }

Define the custom directories for your Nuxt.js application

Example (nuxt.config.js):

  1. export default {
  2. dir: {
  3. assets: 'custom-assets',
  4. app: 'custom-app',
  5. layouts: 'custom-layouts',
  6. middleware: 'custom-middleware',
  7. pages: 'custom-pages',
  8. static: 'custom-static',
  9. store: 'custom-store'
  10. }
  11. }