From 12e6b6cb9cd4ce810047bd7b66cab6a51d3930ab Mon Sep 17 00:00:00 2001 From: Chris Fritz Date: Mon, 12 Dec 2016 18:59:48 -0500 Subject: [PATCH 1/2] Use spaces instead of tabs for consistency Since the rest of the file is using spaces, I changed the tabs before `NuxtLoading` to spaces as well. --- lib/app/components/nuxt.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/components/nuxt.vue b/lib/app/components/nuxt.vue index 516097a69..a95b9d40d 100644 --- a/lib/app/components/nuxt.vue +++ b/lib/app/components/nuxt.vue @@ -47,7 +47,7 @@ export default { }, <% } %> components: { - NuxtError<%= (loading ? ',\n\t\tNuxtLoading' : '') %> + NuxtError<%= (loading ? ',\n NuxtLoading' : '') %> } } From 71b6b990c8b599d8b81036d553302c2840e089ac Mon Sep 17 00:00:00 2001 From: Anthony Cook Date: Tue, 13 Dec 2016 12:17:17 +0000 Subject: [PATCH 2/2] Update package.json NODE_ENV is not a recognised command on Windows, the work around is to use the cross-env package or to have two separate scripts, one for Windows and one for Unix based systems. I figured using the cross-env is much more friendly and will save confusion, tested on both Windows and Mac. --- examples/auth-routes/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/auth-routes/package.json b/examples/auth-routes/package.json index b286e5273..87677b292 100644 --- a/examples/auth-routes/package.json +++ b/examples/auth-routes/package.json @@ -3,6 +3,7 @@ "description": "", "dependencies": { "body-parser": "^1.15.2", + "cross-env": "^3.1.3", "express": "^4.14.0", "express-session": "^1.14.2", "nuxt": "latest", @@ -11,6 +12,6 @@ "scripts": { "dev": "node server.js", "build": "nuxt build", - "start": "NODE_ENV=production node server.js" + "start": "cross-env NODE_ENV=production & node server.js" } }