Search code examples
javascriptopenstackopenstack-horizon

OpenStack Horizon dashboard (Folsom release) js builder


As I know, OpenStack Horizon dashboard (Folsom release) uses LESS.js to compile *.css static files. That's clear.

But I can't figure out what is used to compress Horizon *.js files (such as horizon.instances.js, etc.) to smth like 176baabe0b2d.js, which directly works in browser.

Need your help to determine this js builder. Thanks in advance!


Solution

  • The answer was found.

    There is a COMPRESS_OFFLINE constant in ../openstack_dashboard/local/local_settings.py file. It should be equal to True.

    Then you should run ./manage.py compress command from your ../openstack_dashboard directory to rebuild compressed js Horizon files.