From 167962ccaca8190bdcb437ca3f14cbcb31e2b3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 10 Nov 2016 20:21:16 +0100 Subject: [PATCH] Add when defined --- lib/nuxt.js | 1 + lib/views/app.html | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/nuxt.js b/lib/nuxt.js index e9f6e38fff..0e0c243133 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -143,6 +143,7 @@ class Nuxt { } const html = self.appTemplate({ dev: self.dev, // Use to add the extracted CSS in production + baseUrl: (self.options.router.base !== '/' ? self.options.router.base : null), APP: app, context: context, files: { diff --git a/lib/views/app.html b/lib/views/app.html index ddb22e0dd4..ed052bcc17 100644 --- a/lib/views/app.html +++ b/lib/views/app.html @@ -8,6 +8,7 @@ ${title.toString()} + <% if (baseUrl) { %><% } %> <% if (!dev) { %><% } %>