Skip to content
markstory edited this page Jun 11, 2011 · 25 revisions

Asset Compress is a plugin for CakePHP that can help you reduce the number of HTTP requests your application makes, as well as provide some nice sugar for Javascript and CSS files. Its partly intended as a way to get a 'build' stage without actually making the effort to write build scripts. By using directives you can resolve dependencies in Javascript and inline @import statements in CSS files.

Installation

Download the plugin and place on one of your plugin paths. Depending on whether or not you use caching, you may need to create some additional directories in your webroot, and some extra routes. See below for more details.

Usage and helpful information

  • Configuration Configuring Asset Compress.
  • ini file how to create an ini file, and what options are available.
  • Javascript files Preprocessing steps available for Javascript.
  • Processors Manipulating content before its concatenated.
  • Filters Filtering the concatenated output.
  • CSS files Preprocessing steps available for CSS.
  • Shell The asset compress shell, used for generating and clearing build files.
  • Helper Usage Using the AssetCompress helper in your application.
Clone this wiki locally