Setting Up

Asset source and output directories

Directories to hold the source files and the generated files need to be created before Asset Pipeline is ready to use. To do this, go to System -> Preferences and find the Asset Pipeline settings. You can then either click the ‘Save Changes’ button straight away and use the default settings, or you can choose your own directory paths before saving.

Source directory

The source directory (workspace/assets-src by default) contains a number of subdirectories; by default images, scripts and stylesheets. You can rename the subdirectories or add other ones if you wish. Asset Pipeline treats the subdirectories as if they are all one directory.

Output directory

The output directory (workspace/assets by default) is where files go when the are precompiled for production.

The ‘Precompile Files’ setting

This will be explained in the next part.