API
When a banner is uploaded, prior to being processed the compiler immediately looks within the root folder of your banner for a javascript file named "config.js". "config.js" is expected to hold a valid json object used to alter different aspects of the compiling process.
Targeting specific assets
Individual assets can be targeted and processed differently than others. For example, by default the compiler will set the "quality" property to ".9" for all image types (png, gif, jpeg). In some instances you may feel one or multiple images deserve more or less quality. Other times you may want to convert only some images to a base64 string and export the rest to a specific folder relative to your index.html. Check out the examples below to see how to accomplish these tasks.
In this example, "quality" and "base64" properties are set and passed to all images using the "images" object.
In this example, the "quality" property is set and passed to specific files matching a regex pattern.
In this example, all images ending with the ".jpeg" extention are saved out to a specific folder relative to your index.html.
In this example, all javascript files are minified except for one starting with the word "data".