Articles on category #howtos
"How-tos"

Usage

This part will try to explain how to use the assets manager in your scripts.

»

Minify & merge assets

The plugin embeds a Compressor object to merge and minify JS and CSS contents. The result files are stored on a the "temporary assets directory" (a configuration variable) and can be used "as-is" in HTML contents.

»

Installation

AssetsManager is referenced to the Packagist. To install the plugin, just add the package to your requirements in the composer.json configuration file of your project:

»

How does it work?

The plugin handles any package with a type ***-assets, which will be considered as a standard library by Composer if you don't use the plugin (and will be installed as any other classic library package).

»

Configuration

Below is an example of the package configuration using default values:

»