diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js index 21a663c0e..a16e480af 100644 --- a/src/node/utils/Minify.js +++ b/src/node/utils/Minify.js @@ -144,6 +144,7 @@ function minify(req, res, next) if (plugin) { var pluginPath = plugin.package.realPath; filename = path.relative(ROOT_DIR, pluginPath + '/static/' + resourcePath); + filename = filename.replace(/\\/g, '/'); // Windows (safe generally?) } } diff --git a/src/static/js/ace.js b/src/static/js/ace.js index d7414c17d..dabe5595f 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -173,22 +173,6 @@ require.setGlobalKeyPath("require");\n\ throw new Error("Require script could not be embedded."); } } - function pushScriptsTo(buffer) { - /* Folling is for packaging regular expression. */ - /* $$INCLUDE_JS("../javascripts/lib/ep_etherpad-lite/static/js/ace2_inner.js?callback=require.define"); */ - /* $$INCLUDE_JS("../javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define"); */ - var ACE_SOURCE = '../javascripts/lib/ep_etherpad-lite/static/js/ace2_inner.js?callback=require.define'; - var ACE_COMMON = '../javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define'; - if (Ace2Editor.EMBEDED && Ace2Editor.EMBEDED[ACE_SOURCE]) { - buffer.push('