ng build <project> --<some-flag> results in 'Unknown option: --<some-flag>'
See original GitHub issueBug 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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
target', Unknown option: '--environment'; while trying to build ...
ng build --prod is the default building command for production environment, no need to other parameters, only if there is sth specific you ......
Read more >ng build - Angular
Option Description Value Type Default Value
‑‑aot Build using Ahead of Time compilation. boolean true
‑‑base‑href Base url for the application being built. string
‑‑delete‑output‑path Delete...
Read more >Angular CLI — — Flags (Cheat Sheet) | by Pardeep Jain
So, After some R&D, I'll try to cover some flag. To open project automatically in a browser Tab. ng serve --o. OR ng...
Read more >XProc: An XML Pipeline Language - W3C
The XInclude step reads the pipeline input “source” and produces a result ... be a QNameQName" or "the value of the some-flag option...
Read more >https://downloads.asterisk.org/pub/telephony/aster...
2007-08-31 15:53 +0000 [r81406] Joshua Colp <jcolp@digium.com> * res/res_speech.c: Make it the engine's responsible to check for the presence of results.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hansl As stated in the issue I’m using
6.2.2
. @alan-agius4 If that’s the case then please update the docs, it reads as all flags are also supported for libraries. Despite that I think at least some flags should also work for library builds. Especially everything related todist
folder, as these flags were introduced to support valid use cases - f.e. hosting the compiled library on private git repos etc.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.