Skip to content

Commit 9bb3210

Browse files
author
Charlotte Gore
committed
Updated docs
1 parent 62f71ec commit 9bb3210

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@ The gathering and sorting of dependencies is done automatically. In debug mode b
7777

7878
In the repo, in the EXAMPLE folder, there's a skeleton Express.js application. The files of interest are app.js, views/index.jade and the javascript files in /public/javascripts. If you go into this folder, do `npm install` then `node app.js` you can test it's working.
7979

80+
81+
##Cassette Options
82+
83+
The only real configuration is to do with paths.
84+
85+
// this...
86+
var cassette = require('cassette-express')();
87+
// is a shortcut for..
88+
var cassette = require('cassette-express')({
89+
assetsPath : '/public/javascripts',
90+
outputPath : '/javascripts',
91+
buildPath : '/cassette',
92+
mode : 'debug'
93+
})
94+
95+
If your javascript assets are somewhere else, this is how you would configure that. It's probably best to leave the buildPath as '/cassette' - this makes your minified bundles output to `/public/javascripts/cassette` by default.
96+
97+
This API is pretty horrible. Sorry.
98+
8099
##Next Steps
81100

82101
- Integration with Amazon S3 to allow automatic upload of minified bundles

0 commit comments

Comments
 (0)