diff --git a/packages/angular-cli/commands/github-pages-deploy.run.ts b/packages/angular-cli/commands/github-pages-deploy.run.ts index 8f86915b1786..f0343c1b4edd 100644 --- a/packages/angular-cli/commands/github-pages-deploy.run.ts +++ b/packages/angular-cli/commands/github-pages-deploy.run.ts @@ -69,6 +69,8 @@ export default function githubPagesDeployRun(options: GithubPagesDeployOptions, environment: options.environment, outputPath: outDir, baseHref: baseHref, + aot: options.aot, + vendorChunk: options.vendorChunk, }; const createGithubRepoTask = new CreateGithubRepo({ diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index 906bbbefc2e7..d766af1f14af 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -11,6 +11,8 @@ export interface GithubPagesDeployOptions { ghUsername?: string; baseHref?: string; customDomain?: string; + aot?: boolean; + vendorChunk?: boolean; } const githubPagesDeployCommand = Command.extend({ @@ -69,6 +71,14 @@ const githubPagesDeployCommand = Command.extend({ default: null, aliases: ['cd'], description: 'Custom domain for Github Pages' + }, { + name: 'aot', + type: Boolean, + default: false, + }, { + name: 'vendor-chunk', + type: Boolean, + default: false, }], run: function(options: GithubPagesDeployOptions, rawArgs: string[]) {