Skip to content

ng build <project> --<some-flag> results in 'Unknown option: --<some-flag>' #12299

@arm1n

Description

@arm1n

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node: v10.6.0
NPM: v6.1.0
CLI: v6.2.2
Mac OSX El Capitan (10.11.6)

Repro steps

I've just tested some flags like --delete-output-path, --output-path and --build-optimizer or --vendor-chunk. I know that it uses --prod implicitly and supports --watch since latest upgrade.

ng generate library my-lib
ng build my-lib --delete-output-path=false

The log given by the failure

Unknown option: --deleteOutputPath

Desired functionality

The ng build command should provide the same functionality for libraries as for usual projects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions