Skip to content

Commit 5e30b04

Browse files
committed
fix(@angular/cli): add -o alias for --build-optimizer
/cc @StephenFluin
1 parent e486d17 commit 5e30b04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@angular/cli/commands/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const baseBuildCommandOptions: any = [
163163
name: 'build-optimizer',
164164
type: Boolean,
165165
default: false,
166-
aliases: ['bo'],
166+
aliases: ['o'],
167167
description: '(Experimental) Enables @angular-devkit/build-optimizer '
168168
+ 'optimizations when using `--aot`.'
169169
},

tests/e2e/tests/build/build-optimizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expectToFail } from '../../utils/utils';
44

55

66
export default function () {
7-
return ng('build', '--aot', '--bo')
7+
return ng('build', '--aot', '--o')
88
.then(() => expectToFail(() => expectFileToExist('dist/vendor.js')))
99
.then(() => expectToFail(() => expectFileToMatch('dist/main.js', /\.decorators =/)));
1010
}

0 commit comments

Comments
 (0)