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'],
|
||||
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/
|
||||
const files = {}
|
||||
; (await glob(`${this.options.dir.pages}/**/*.{vue,js}`, {
|
||||
@ -310,7 +310,7 @@ export default class Builder {
|
||||
this.options.srcDir,
|
||||
this.options.dir.pages
|
||||
)
|
||||
} else {
|
||||
} else { // If user defined a custom method to create routes
|
||||
templateVars.router.routes = this.options.build.createRoutes(
|
||||
this.options.srcDir
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user