Rename javascript path from 'minified' to 'javascripts/src'.

Also anticipate requirement of libary modules for plugins.
This commit is contained in:
Chad Weider 2012-03-10 14:52:19 -08:00
parent 652fffe8ea
commit 86d6dde42f
4 changed files with 16 additions and 10 deletions

View file

@ -142,9 +142,9 @@ async.waterfall([
gracefulShutdown();
});
// Cache both minified and static.
// Cache both packaged and static.
var assetCache = new CachingMiddleware;
app.all('/(minified|static)/*', assetCache.handle);
app.all('/(javascripts|static)/*', assetCache.handle);
// Minify will serve static files compressed (minify enabled). It also has
// file-specific hacks for ace/require-kernel/etc.
@ -153,7 +153,7 @@ async.waterfall([
// Setup middleware that will package JavaScript files served by minify for
// CommonJS loader on the client-side.
var jsServer = new (Yajsml.Server)({
rootPath: 'minified/'
rootPath: 'javascripts/src'
, rootURI: 'http://localhost:' + settings.port + '/static/js/'
});
var StaticAssociator = Yajsml.associators.StaticAssociator;