Skip to content

Commit 71445c3

Browse files
scttcperhansl
authored andcommitted
feat(gh-pages:deploy): add aot and vendor-chunk options for gh-pages:deploy (#4073)
1 parent eec462b commit 71445c3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/angular-cli/commands/github-pages-deploy.run.ts

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export default function githubPagesDeployRun(options: GithubPagesDeployOptions,
6969
environment: options.environment,
7070
outputPath: outDir,
7171
baseHref: baseHref,
72+
aot: options.aot,
73+
vendorChunk: options.vendorChunk,
7274
};
7375

7476
const createGithubRepoTask = new CreateGithubRepo({

packages/angular-cli/commands/github-pages-deploy.ts

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export interface GithubPagesDeployOptions {
1111
ghUsername?: string;
1212
baseHref?: string;
1313
customDomain?: string;
14+
aot?: boolean;
15+
vendorChunk?: boolean;
1416
}
1517

1618
const githubPagesDeployCommand = Command.extend({
@@ -69,6 +71,14 @@ const githubPagesDeployCommand = Command.extend({
6971
default: null,
7072
aliases: ['cd'],
7173
description: 'Custom domain for Github Pages'
74+
}, {
75+
name: 'aot',
76+
type: Boolean,
77+
default: false,
78+
}, {
79+
name: 'vendor-chunk',
80+
type: Boolean,
81+
default: false,
7282
}],
7383

7484
run: function(options: GithubPagesDeployOptions, rawArgs: string[]) {

0 commit comments

Comments
 (0)