Reputation: 727
In the official Ng-Book about Angular 6 I read that it is possible build an app via the command
ng build --target=production --base-href /
But, if I try it in a very simple app which normally builds perfectly, I see the message
unknow option: '--target'
Why? (the book and my app are obviously referred to the same Angular version, the 6)
Upvotes: 0
Views: 92
Reputation: 3245
That is an error in the book and has been corrected in Revision 69 https://www.ng-book.com/2/p/Changelog/
Should be
ng build --prod
Upvotes: 2