feat(v2): render 404 html page (#1652)

This commit is contained in:
Endi 2019-07-13 17:57:09 +07:00 committed by Yangshun Tay
parent ca67cad2a7
commit 1f5f06134f
2 changed files with 3 additions and 1 deletions

View file

@ -55,6 +55,7 @@ export default [
];
",
"routesPaths": Array [
"404.html",
"/blog",
],
}
@ -140,6 +141,7 @@ export default [
];
",
"routesPaths": Array [
"404.html",
"/docs/hello",
"docs/foo/baz",
],

View file

@ -26,7 +26,7 @@ export async function loadRoutes(pluginsRouteConfigs: RouteConfig[]) {
const registry: {
[chunkName: string]: ChunkRegistry;
} = {};
const routesPaths: string[] = [];
const routesPaths: string[] = ['404.html'];
const routesChunkNames: {
[routePath: string]: any;
} = {};