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({
97
97
const projectName = this . project . pkg . name ;
98
98
99
99
const outDir = CliConfig . fromProject ( ) . config . apps [ 0 ] . outDir ;
100
+ const indexFilename = CliConfig . fromProject ( ) . config . apps [ 0 ] . index ;
100
101
101
102
let ghPagesBranch = 'gh-pages' ;
102
103
let destinationBranch = options . userPage ? 'master' : ghPagesBranch ;
@@ -216,7 +217,7 @@ const githubPagesDeployCommand = Command.extend({
216
217
}
217
218
218
219
function createNotFoundPage ( ) {
219
- const indexHtml = path . join ( root , 'index.html' ) ;
220
+ const indexHtml = path . join ( root , indexFilename ) ;
220
221
const notFoundPage = path . join ( root , '404.html' ) ;
221
222
return fsCopy ( indexHtml , notFoundPage ) ;
222
223
}
You can’t perform that action at this time.
0 commit comments