The dir property

Define the custom directories for your Nuxt application


  • 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. }

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. }