From fc256d845822a7a5b5c3fcd0409f2b273f9278db Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 17 Nov 2016 23:43:19 -0800 Subject: [PATCH] Update github-pages-deploy.ts related to fix in #2767 There is no guarantee that there will be an `index.html` file, as the developer may specify a custom index file. When a developer uses a custom index file, use that file name when copying to the 404.html file. --- packages/angular-cli/commands/github-pages-deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index eb4f806e4f32..e844919a8cb4 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -216,7 +216,7 @@ const githubPagesDeployCommand = Command.extend({ } function createNotFoundPage() { - const indexHtml = path.join(root, 'index.html'); + const indexHtml = path.join(root, this.project.index); const notFoundPage = path.join(root, '404.html'); return fsCopy(indexHtml, notFoundPage); }