mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
move underscore to its old place and remove unnecessary packages (#4876)
This commit is contained in:
parent
c0ec28f781
commit
15dba7d886
9 changed files with 7 additions and 17 deletions
|
@ -146,14 +146,6 @@ const minify = async (req, res) => {
|
|||
filename = 'js/vendors/jquery.js';
|
||||
}
|
||||
|
||||
// Backward compatibility for plugins that were written when underscore lived at
|
||||
// src/static/js/underscore.js.
|
||||
if (['js/underscore.js', 'plugins/ep_etherpad-lite/static/js/underscore.js']
|
||||
.indexOf(filename) !== -1) {
|
||||
logger.warn(`request for deprecated underscore path: ${filename}`);
|
||||
filename = 'js/vendors/underscore.js';
|
||||
}
|
||||
|
||||
/* Handle static files for plugins/libraries:
|
||||
paths like "plugins/ep_myplugin/static/js/test.js"
|
||||
are rewritten into ROOT_PATH_OF_MYPLUGIN/static/js/test.js,
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
, "vendors/jquery.js"
|
||||
, "rjquery.js"
|
||||
, "$async.js"
|
||||
, "vendors/underscore.js"
|
||||
, "underscore.js"
|
||||
, "$underscore.js"
|
||||
, "$underscore/underscore.js"
|
||||
, "security.js"
|
||||
|
@ -82,6 +82,4 @@
|
|||
, "pluginfw/shared.js"
|
||||
, "pluginfw/hooks.js"
|
||||
]
|
||||
, "jquery.js": ["jquery.js"]
|
||||
, "underscore.js": ["underscore.js"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue