mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Rename javascript path from 'minified' to 'javascripts/src'.
Also anticipate requirement of libary modules for plugins.
This commit is contained in:
parent
652fffe8ea
commit
86d6dde42f
4 changed files with 16 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue