From ee312672d307e3bcc981b952dc2a4ff88d5c2d08 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sat, 10 Mar 2012 14:36:54 -0800 Subject: [PATCH 1/7] This is duplicated by the contents of static. --- src/ep.json | 1 - src/node/hooks/express/minified.js | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 src/node/hooks/express/minified.js diff --git a/src/ep.json b/src/ep.json index bc955dbf..59cbf3aa 100644 --- a/src/ep.json +++ b/src/ep.json @@ -3,7 +3,6 @@ { "name": "static", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/static:expressCreateServer" } }, { "name": "specialpages", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/specialpages:expressCreateServer" } }, { "name": "padurlsanitize", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/padurlsanitize:expressCreateServer" } }, - { "name": "minified", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/minified:expressCreateServer" } }, { "name": "padreadonly", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/padreadonly:expressCreateServer" } }, { "name": "webaccess", "hooks": { "expressConfigure": "ep_etherpad-lite/node/hooks/express/webaccess:expressConfigure" } }, { "name": "apicalls", "hooks": { "expressCreateServer": "ep_etherpad-lite/node/hooks/express/apicalls:expressCreateServer" } }, diff --git a/src/node/hooks/express/minified.js b/src/node/hooks/express/minified.js deleted file mode 100644 index f8a988d7..00000000 --- a/src/node/hooks/express/minified.js +++ /dev/null @@ -1,6 +0,0 @@ -var minify = require('../../utils/Minify'); - -exports.expressCreateServer = function (hook_name, args, cb) { - //serve minified files - args.app.get(/^\/minified\/(.*)/, minify.minifyJS); -} From 648603126b7d9ab87cb9b19b5422d936dc2536f4 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sat, 10 Mar 2012 13:59:07 -0800 Subject: [PATCH 2/7] Remove require changes in `pushScriptsTo` method. These duplicate `pushRequireScriptTo` at least, but mostly break things. --- src/static/js/ace.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index 4114b63c..7331d68d 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -176,10 +176,6 @@ function Ace2Editor() } else { file = ACE_SOURCE; file = file.replace(/^\.\.\/static\/js\//, '../minified/'); - buffer.push('\ - + - + - + - +