ionic build
Build web assets and prepare your app for any platform targets
$ ionic build [options]
ionic build
will perform an Ionic build, which compiles web assets and prepares them for deployment.
ionic build
uses the Angular CLI. Use ng build --help
to list all Angular CLI options for building your app. See the ng build
docs for explanations. Options not listed below are considered advanced and can be passed to the ng
CLI using the --
separator after the Ionic CLI arguments. See the examples.
Examples
$ ionic build
$ ionic build --prod
$ ionic build --watch
Options
--prod | |
---|---|
Description | Flag to use the |
Advanced Options
--configuration =<conf> | |
---|---|
Description | Specify the configuration to use. |
Aliases | -c |
--source-map | |
Description | Output source maps |
--watch | |
Description | Rebuild when files change |
--engine =<engine> | |
Description | Target engine (e.g. |
--platform =<platform> | |
Description | Target platform on chosen engine (e.g. |