This is a migrated thread and some comments may be shown as answers.

How to Minify my appbuilder solution

1 Answer 75 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 23 Feb 2015, 06:36 AM
Hi,

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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 25 Feb 2015, 02:58 PM
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:
Regards,
Zdravko
Telerik
 

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

 
Tags
AppBuilder extension for Visual Studio
Asked by
Andrew
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or