From cb7406cba6a42a4009660569c921f7fdca5bb209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 10 Nov 2016 19:34:59 +0100 Subject: [PATCH] router.base is now working as expected --- bin/nuxt-generate | 3 ++- bin/nuxt-start | 2 +- examples/hello-world/pages/about.vue | 2 +- examples/hello-world/pages/index.vue | 2 +- lib/build/index.js | 8 +++++--- lib/build/webpack/base.config.js | 4 ++-- lib/build/webpack/server.config.js | 2 +- lib/generate.js | 21 +++++++++++++++++++-- lib/nuxt.js | 18 ++++++++++++++---- lib/utils.js | 4 ++++ 10 files changed, 50 insertions(+), 16 deletions(-) diff --git a/bin/nuxt-generate b/bin/nuxt-generate index 4c49bf8b1e..d1f9cf9b6e 100755 --- a/bin/nuxt-generate +++ b/bin/nuxt-generate @@ -17,7 +17,8 @@ if (typeof options.rootDir !== 'string') { options.rootDir = rootDir } -options.build = true // Enable building +options._build = false // nuxt.generate() will call nuxt.build() itself +options._renderer = false // let nuxt.generate() create the vue renderer options.dev = false // Force production mode (no webpack middlewares called) console.log('[nuxt] Generating...') diff --git a/bin/nuxt-start b/bin/nuxt-start index b0e0f23820..4c155ffaf6 100755 --- a/bin/nuxt-start +++ b/bin/nuxt-start @@ -15,7 +15,7 @@ if (typeof options.rootDir !== 'string') { options.rootDir = rootDir } -options.build = false // Disable building +options._build = false // Disable building options.dev = false // Force production mode (no webpack middlewares called) new Nuxt(options) diff --git a/examples/hello-world/pages/about.vue b/examples/hello-world/pages/about.vue index 10b34ee7f8..84394c9639 100755 --- a/examples/hello-world/pages/about.vue +++ b/examples/hello-world/pages/about.vue @@ -1,6 +1,6 @@