Compressor - wuhengzhi/crosswalk-website GitHub Wiki
Introduction
The compressor is to minify the size of JavaScript and CSS files which are included in the web application. It compresses these files according to the options in command line. It will not modify the JavaScript and CSS files in the original directory. In order to use this feature, you need to specify "--manifest" or "--app-root" in the command line of "make_apk.py".
The usage of compressor
Command Line | Description |
---|---|
python make_apk.py --manifest=your_web_app_path/manifest.json --compressor |
compress all the JavaScript and CSS files. |
python make_apk.py --manifest=your_web_app_path/manifest.json --compressor=js |
compress JavaScript files. |
python make_apk.py --manifest=your_web_app_path/manifest.json --compressor=css |
compress CSS files. |
python make_apk.py --manifest=your_web_app_path/manifest.json |
compress nothing. |