Add .nojekyll file for gh-pages

This commit is contained in:
Sébastien Chopin 2016-11-27 18:11:41 +01:00
parent d1920860c0
commit cbba9d0631

View File

@ -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')
})
}