summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorChad Weider <cweider@oofn.net>2012-03-10 14:52:19 -0800
committerChad Weider <cweider@oofn.net>2012-03-10 14:54:38 -0800
commit86d6dde42f3ba5d922955f9e49ccbb8caef2e404 (patch)
tree794247e8230920e2fb7c9f0c05270ccb00d94e2b /node
parent652fffe8eabc6e31bf4801d62296566351d8c32d (diff)
downloadetherpad-lite-86d6dde42f3ba5d922955f9e49ccbb8caef2e404.zip
Rename javascript path from 'minified' to 'javascripts/src'.
Also anticipate requirement of libary modules for plugins.
Diffstat (limited to 'node')
-rw-r--r--node/server.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/server.js b/node/server.js
index c5377d81..56bdadd4 100644
--- a/node/server.js
+++ b/node/server.js
@@ -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;