From 2f78f87c06db66f8f88fd94addbfcc7a670a7abb Mon Sep 17 00:00:00 2001 From: xxRockOnxx Date: Sat, 3 Nov 2018 20:25:41 +0800 Subject: [PATCH] [skip ci] move misleading comment (#4265) --- packages/builder/src/builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/builder.js b/packages/builder/src/builder.js index e93f2aa559..733063da34 100644 --- a/packages/builder/src/builder.js +++ b/packages/builder/src/builder.js @@ -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 )