When i try to run command to release the final version of my app
When using the command
sudo ionic build ios --release --prod
to generate the final version of application, I get the message…
ionic-app-scripts 1.1.0
build prod started ...
clean started ...
clean finished in 28 ms
copy started ...
ngc started ...
**Failed to parse and update /Users/joe/apps/my-app/sources/src/app/main.ts content for AoT **
** compilation. For now, the default fallback content will be used instead. Please consider updating **
** /Users/joe/apps/my-app/sources/src/app/main.ts with the content from the following link: **
** https://github.com/driftyco/ionic2-app-base/tree/master/src/app/main.ts**
[...]
the content of main.ts is
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
import { KeycloakService } from "./keycloak.service"; // see example from https://github.com/keycloak/keycloak/tree/master/examples/demo-template/angular2-product-app
KeycloakService.init()
.then(() => {
const platform = platformBrowserDynamic();
platform.bootstrapModule(AppModule);
})
.catch(() => window.location.reload());
This only happens when I run the command
ionic build ios --prod --release
Using only the command
ionic build ios --prod
the message don’t appear but the code does not minified!
Any suggestion?