add static 404.html

This commit is contained in:
Alexandre Chopin 2017-06-29 13:34:59 +02:00
parent 53d2acd733
commit f488eda003

View File

@ -109,6 +109,7 @@ export default class Generator extends Tapable {
}
}
let path = join(route, sep, 'index.html') // /about -> /about/index.html
path = (path === '/404/index.html') ? '/404.html' : path // /404 -> /404.html
debug('Generate file: ' + path)
path = join(distPath, path)
// Make sure the sub folders are created