Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 630 Bytes

configuration-dir.md

File metadata and controls

37 lines (32 loc) · 630 Bytes
title description
API: The dir Property
Define the custom directories for your Nuxt.js application
  • Type: Object
  • Default:
{
  assets: 'assets',
  app: 'app',
  layouts: 'layouts',
  middleware: 'middleware',
  pages: 'pages',
  static: 'static',
  store: 'store'
}

Define the custom directories for your Nuxt.js application

Example (nuxt.config.js):

export default {
  dir: {
    assets: 'custom-assets',
    app: 'custom-app',
    layouts: 'custom-layouts',
    middleware: 'custom-middleware',
    pages: 'custom-pages',
    static: 'custom-static',
    store: 'custom-store'
  }
}