I am trying to implement minification and concatenation in my Worklight project.
I followed the steps that were given in the IBM Worklight Information Center and Concatenation is working however Minification worked.
Where to check whether the js and css files are minified or not.
Reading materials:
Please make sure to thoroughly read these. Some of your questions are answered there (and below...).
Follow the below steps to verify minification is working for you.
This is what I've done:
Added the Mobile Web environment
In
build-settings.xml
I have added the Mobile Web environmentPointed the
includes
field to:**/js/testapp.js
;
to separate entries:**/js/*;testapp.css
Right-clicked the Mobile Web environment folder and then on
Run As > Apply build settings... > Use minification to reduce the size of JavaScript and CSS files > Save and run
myProject\bin\testapp-mobilewebapp-1.0.wlapp
to the Desktopwww\default\js\testapp.js
The copyright notice is not removed (legal stuff, it's on you to remove that beforehand if you choose so), but whitespaces and comments have been removed.
Before:
After: