How to Minify my appbuilder solution

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    1 posts
    Member since:
    Jan 2015

    Posted 23 Feb 2015 Link to this post


    I am currently using AppBuilder which builds my Hybrid Mobile App in cloud. I would like to minify the javascript e.g. using Require optimizer.

    Currently I am doing it manually via command line to run r.js.cmd to generate the minified main.js and then updating the index.html to load the minfiied main.js before building it in cloud.

    Is there anyway I can automate this step to run everytime before building the app in cloud?

  2. Zdravko
    Zdravko avatar
    657 posts

    Posted 25 Feb 2015 Link to this post

    Hi Andrew,

    I believe you can automate the process of producing a package containing the minified file by creating a script that will first minify your jscript, add a reference to your html and then call our CLI with build command e.g. appbuilder build Android --release .
    Here are a few articles that you may find interesting:

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top