Minify JS and Css (production)

This is an example of how Minifine would run when in a development environment.

When in development mode the resources will be minified, however unminified versions will be loaded when the page is requested to ease debugging.

In the head of this page two stylesheet will be minified and at the bottom of this page three javascript files will be minified:


<?= $minifier->css(['/css/bootstrap.min.css', '/css/custom.css'], '/css/styles.min.css'); ?>

Javascript files

<?= $minifier->js(['/js/jquery-1.11.2.min.js', '/js/bootstrap.min.js', '/js/custom.js'], '/js/main.min.js'); ?>

Check the source of this page to see the rendered HTML.