Product/components used and version/fix level:
c8ycli
for building custom applications for the Cumulocity IoT platform. I’m using version 10.16, but I guess, the version is not important here.
Detailed explanation of the problem:
I want to build a custom application with c8ycli
. Running c8ycli build just works fine.
However, I’m wondering how to optimize the build for production usage (deployment to Cumulocity IoT platform). The documentation of c8ycli
mentions the option ‑‑env.mode="production"
. Thus I’ve tried c8ycli build --env.mode="production". But this alone doesn’t seem to have any effect on the resulting build.
Being more familiar with Angular, I know Angular’s option --configuration production
(just -prod
in earlier versions of Angular). This option combined with typical settings in angular.json
produces an optimized build that is significantly smaller than a build without this option. Can we achieve something similar with c8ycli
?