• dir 属性

    dir 属性

    • 类型: Object
    • 默认:
    1. {
    2. assets: 'assets',
    3. layouts: 'layouts',
    4. middleware: 'middleware',
    5. pages: 'pages',
    6. static: 'static',
    7. store: 'store'
    8. }

    定义Nuxt.js应用程序的自定义目录

    例如 (nuxt.config.js):

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