angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Docs on "build" page show no hyphen for "build".

Open tcoz opened this issue 9 years ago • 5 comments

AT this link, take a look at the instructions for "build".

There's some confusion. Is it ng build:

--prod -prod prod

?

I cloned the wiki and it looks like --prod is correct. But maybe all three work? I ran all three and there's no errors, --prod and -prod seem to do the same thing, plain "prod" seems to get ignored.

tcoz avatar Jan 06 '17 18:01 tcoz

--prod is the proper one; -prod works but IMO shouldn't, prod shouldn't work and that's correct.

hansl avatar Jan 06 '17 23:01 hansl

Right, this makes the docs confusing though, since it says "prod", the other two args have hyphens, and elsewhere you can find --prod. It'd probably be a good idea to make that crystal clear in the docs.

tcoz avatar Jan 07 '17 10:01 tcoz

You are correct I have created #3915 to resolve this confusion.

RicardoVaranda avatar Jan 09 '17 10:01 RicardoVaranda

Fixed in https://github.com/angular/angular-cli/pull/3915

filipesilva avatar Jan 24 '17 14:01 filipesilva

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.