Want to take a look at our new docs? Our
new docs
are now in beta. Have fun!
API: dir 属性
dir 属性
- 类型:
Object
- 默认:
{
assets: 'assets',
layouts: 'layouts',
middleware: 'middleware',
pages: 'pages',
static: 'static',
store: 'store'
}
定义 Nuxt.js 应用程序的自定义目录
例如 (nuxt.config.js
):
export default {
dir: {
assets: 'custom-assets',
layouts: 'custom-layouts',
middleware: 'custom-middleware',
pages: 'custom-pages',
static: 'custom-static',
store: 'custom-store'
}
}