Skip to content
markstory edited this page Jun 12, 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. See below for more details.

Usage

  • Configuration Configuring Asset Compress. Defining build files and plugin behaviour.
  • Filters Filtering the concatenated output.
  • Shell The asset compress shell, used for generating and clearing build files.
  • Helper Usage Using the AssetCompress helper in your application.
  • Troubleshooting WTF, and how you might be able to fix it.
Clone this wiki locally