move underscore to its old place and remove unnecessary packages (#4876)

This commit is contained in:
webzwo0i 2021-02-27 06:10:53 +01:00 committed by GitHub
parent c0ec28f781
commit 15dba7d886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 7 additions and 17 deletions

View file

@ -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,