HUB Client Docs

DEPRECATED

Assets

While building a Target, two folders of assets are being processed: <target>/src/assets and @zenoo/hub-client-common/lib/assets.

Target Builder collects the whole content of these two folders, adds a random hash postfix to filenames (to prevent caching issues) and puts into output /assets folder. All references to assets are being replaced with new hashed names as well, both in YML and LESS/CSS files.

In case of collisions between <target>/src/assets and @zenoo/hub-client-common/lib/assets, file from <target>/src/assets will have a higher priority. By this you can replace some “default asset” with an asset specific only for this target.

IMPORTANT:

Format to reference an asset should be: /assets/some_file.ext.

Other reference formats like ./../assets/some_file.ext will not be resolved properly.