From cbba9d0631c7183222ebe8e042b55eb9b4b34f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Sun, 27 Nov 2016 18:11:41 +0100 Subject: [PATCH] Add .nojekyll file for gh-pages --- lib/generate.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/generate.js b/lib/generate.js index f41837ed8..ea1f67a05 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -103,6 +103,12 @@ module.exports = function () { return Promise.all(promises) }) .then((pages) => { + // Add .nojekyll file to let Github Pages add the _nuxt/ folder + // https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ + const nojekyllPath = resolve(distPath, '.nojekyll') + return writeFile(nojekyllPath) + }) + .then(() => { debug('HTML Files generated') }) }