Add some comments.

This commit is contained in:
Chad Weider 2012-02-19 18:26:31 -08:00
parent 98f56b53b4
commit cfe095466f
2 changed files with 13 additions and 4 deletions

View file

@ -146,10 +146,12 @@ async.waterfall([
var assetCache = new CachingMiddleware;
app.all('/(minified|static)/*', assetCache.handle);
//serve static files
// Minify will serve static files compressed (minify enabled). It also has
// file-specific hacks for ace/require-kernel/etc.
app.all('/static/:filename(*)', minify.minify);
//serve minified files
// Setup middleware that will package JavaScript files served by minify for
// CommonJS loader on the client-side.
var jsServer = new (Yajsml.Server)({
rootPath: 'minified/'
, rootURI: 'http://' + settings.ip + ":" + settings.port + '/static/js/'