We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c816402 commit b1cbf17Copy full SHA for b1cbf17
packages/angular-cli/commands/github-pages-deploy.ts
@@ -97,6 +97,7 @@ const githubPagesDeployCommand = Command.extend({
97
const projectName = this.project.pkg.name;
98
99
const outDir = CliConfig.fromProject().config.apps[0].outDir;
100
+ const indexFilename = CliConfig.fromProject().config.apps[0].index;
101
102
let ghPagesBranch = 'gh-pages';
103
let destinationBranch = options.userPage ? 'master' : ghPagesBranch;
@@ -216,7 +217,7 @@ const githubPagesDeployCommand = Command.extend({
216
217
}
218
219
function createNotFoundPage() {
- const indexHtml = path.join(root, 'index.html');
220
+ const indexHtml = path.join(root, indexFilename);
221
const notFoundPage = path.join(root, '404.html');
222
return fsCopy(indexHtml, notFoundPage);
223
0 commit comments