File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/angular-cli/commands Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ const githubPagesDeployCommand = Command.extend({
9797 const projectName = this . project . pkg . name ;
9898
9999 const outDir = CliConfig . fromProject ( ) . config . apps [ 0 ] . outDir ;
100+ const indexFilename = CliConfig . fromProject ( ) . config . apps [ 0 ] . index ;
100101
101102 let ghPagesBranch = 'gh-pages' ;
102103 let destinationBranch = options . userPage ? 'master' : ghPagesBranch ;
@@ -216,7 +217,7 @@ const githubPagesDeployCommand = Command.extend({
216217 }
217218
218219 function createNotFoundPage ( ) {
219- const indexHtml = path . join ( root , 'index.html' ) ;
220+ const indexHtml = path . join ( root , indexFilename ) ;
220221 const notFoundPage = path . join ( root , '404.html' ) ;
221222 return fsCopy ( indexHtml , notFoundPage ) ;
222223 }
You can’t perform that action at this time.
0 commit comments