All of the files in a bundle are concatenated into a single download, minified according to their content-type, and served to client browsers as a single download with optimized HTTP headers. They consist of two parts, an entry in the JSON definition file, and a sub-directory containing additional files. Because bundles are defined separately at each of these levels, you can be confident that your code will not trample on other unrelated plugins, and vice versa.
JSON Definition File
Here is an example:
Next, create a sub-directory within the Theme, Template, or Widget with the same name as the bundle. You can populate any number of text files within this directory. On request, Emissary will concatenate these files into a single download and minify them (if possible) to reduce the overall download size.
Emissary includes several magic, hidden URLs to download bundles according to the type of container.
These URLs can be used in
<link> tags just like any URL, such as:
<link rel="stylesheet" href="/.themes/default/stylesheet">