$ ionic build
Build web assets and prepare your app for any platform targets
Synopsis
$ ionic build
Details
ionic build
will perform an Ionic build, which compiles web assets and prepares them for deployment. For Ionic/Cordova apps, the CLI will run cordova prepare
, which copies the built web assets into the Cordova platforms that you’ve installed. For full details, see ionic cordova prepare --help
.
Option | Description |
---|---|
--prod |
Build the application for production |
--aot |
Perform ahead-of-time compilation for this build |
--minifyjs |
Minify JS for this build |
--minifycss |
Minify CSS for this build |
--optimizejs |
Perform JS optimizations for this build |
Examples
$ ionic build
$ ionic build --prod