mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
[skip ci] move misleading comment (#4265)
This commit is contained in:
parent
17e0890c90
commit
2f78f87c06
@ -293,7 +293,7 @@ export default class Builder {
|
|||||||
['index.vue'],
|
['index.vue'],
|
||||||
this.template.templatesDir + '/pages'
|
this.template.templatesDir + '/pages'
|
||||||
)
|
)
|
||||||
} else if (this._nuxtPages) { // If user defined a custom method to create routes
|
} else if (this._nuxtPages) {
|
||||||
// Use nuxt.js createRoutes bases on pages/
|
// Use nuxt.js createRoutes bases on pages/
|
||||||
const files = {}
|
const files = {}
|
||||||
; (await glob(`${this.options.dir.pages}/**/*.{vue,js}`, {
|
; (await glob(`${this.options.dir.pages}/**/*.{vue,js}`, {
|
||||||
@ -310,7 +310,7 @@ export default class Builder {
|
|||||||
this.options.srcDir,
|
this.options.srcDir,
|
||||||
this.options.dir.pages
|
this.options.dir.pages
|
||||||
)
|
)
|
||||||
} else {
|
} else { // If user defined a custom method to create routes
|
||||||
templateVars.router.routes = this.options.build.createRoutes(
|
templateVars.router.routes = this.options.build.createRoutes(
|
||||||
this.options.srcDir
|
this.options.srcDir
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user