Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what options are available for production build? #3490

Closed
aggarwalankush opened this issue Dec 9, 2016 · 7 comments
Closed

what options are available for production build? #3490

aggarwalankush opened this issue Dec 9, 2016 · 7 comments

Comments

@aggarwalankush
Copy link

aggarwalankush commented Dec 9, 2016

For production build, --prod flag is available. In github issues, I see mentions of other flags such as --aot, --no-sourcemap which can be useful in production. Do we have a list of all flags and their description that we can use for faster execution in production?

@grizzm0
Copy link
Contributor

grizzm0 commented Dec 9, 2016

ng help

ng build <options...>
  Builds your app and places it into the output path (dist/ by default).
  aliases: b
  --target (String) (Default: development)
    aliases: -t <value>, -dev (--target=development), -prod (--target=production)
  --environment (String) (Default: )
    aliases: -e <value>
  --output-path (Path) (Default: null)
    aliases: -o <value>
  --watch (Boolean) (Default: false)
    aliases: -w
  --watcher (String)
  --suppress-sizes (Boolean) (Default: false)
  --base-href (String) (Default: null)
    aliases: -bh <value>
  --aot (Boolean) (Default: false)
  --sourcemap (Boolean) (Default: true)
    aliases: -sm

@Cito
Copy link

Cito commented Dec 9, 2016

By the way, it would be nice to have separate help commands like ng help build, so you don't need to scroll through the complete help output to find the relevant command.

@baruchvlz
Copy link
Contributor

@Cito That's being fixed with #3442 I believe.

@nweldev
Copy link
Contributor

nweldev commented Dec 9, 2016

Yep #3442 add ng help build, and ng help (#3490 (comment)) is the right answer for now. This is not an issue, but a support request, and it was answered.

@Cito
Copy link

Cito commented Dec 9, 2016

@baruchvlz @noelmace Cool - feels like writing to a wish fairy :)

@filipesilva
Copy link
Contributor

Closed as answered.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants