0

I am trying to Minify and concat my Web-resources of Mobile App using build-settings.xml by following code

<buildSettings xmlns="http://www.ibm.worklight.com/build-settings">
<common>
<minification level="simple" includes="**"/>
<concatenation includes="**"/>
</common>
<android>
    <minification includes="**" level="simple"/>
    <concatenation includes="**"/>
</android>
<iphone>
    <minification includes="**" level="whitespaces"/>
    <concatenation includes="**"/>
</iphone>
</buildSettings>

After building App, I am not able to see Minified and concat(size of APK and IPA file is same) effect on web-resources Also, when MobileFirst build-setting Minifiy and concat web-resources, like at the time of MobileFirst build or during Platform specific build(generation of APK and/or IPA)

MF version: 7.1.0.00.20160229-1240

Using ANT scripts for MobileFirst, Android and iOS build

Harsh
  • 282
  • 1
  • 3
  • 11

1 Answers1

1

When using minification and concatenation, and the build task is executed via an Ant script, ensure that your build task in the Ant script also includes concatenate="true" and minifyResources="true".

Reference: MobileFirst ant scripts for build with minification

Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89