mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Minify serves the require kernel.
This commit is contained in:
parent
e33c5a3aac
commit
3da1464ae0
2 changed files with 15 additions and 15 deletions
|
@ -143,11 +143,6 @@ async.waterfall([
|
|||
});
|
||||
|
||||
//serve static files
|
||||
app.get('/static/js/require-kernel.js', function (req, res, next) {
|
||||
res.header("Content-Type","application/javascript; charset: utf-8");
|
||||
res.write(minify.requireDefinition());
|
||||
res.end();
|
||||
});
|
||||
var assetCache = new CachingMiddleware;
|
||||
app.all('/static/js/:filename', assetCache.handle, minify.minifyJS);
|
||||
app.get('/static/*', function(req, res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue