Easy Javascript and CSS bundling

2019-05-15 11:30 PM (5 years ago)

Two new Pebble functions are now provided to easily bundle your Javascript files together and your CSS files together, directly from an HTML template.

The jsBundle(...) function allows you to concatenate and optimize multiple .js files. The result can then be served as a single bundle that is quick to download for the client. This Pebble function is provided by the Spincast JS Closure Compiler plugin.

The cssBundle(...) is similar but target your .css files. It is provided by the Spincast CSS YUI Compressor plugin.