diff options
author | Chad Weider <cweider@oofn.net> | 2012-03-10 18:11:06 -0800 |
---|---|---|
committer | Chad Weider <cweider@oofn.net> | 2012-03-10 18:11:06 -0800 |
commit | 5ee0067d008cef339c048cf65413f3a8b05c1e9c (patch) | |
tree | 0b34e49ef67fca6f5b779833d9e0e883cde06d23 /src/node/utils | |
parent | 4e039d68da8e781c3959f41272a4cc05ff436b8e (diff) | |
parent | 3a115154e77c9d9ab83ddf4ae539f36866a8e0b4 (diff) | |
download | etherpad-lite-5ee0067d008cef339c048cf65413f3a8b05c1e9c.zip |
Merge branch 'plugin-fix-require' into plugin
Diffstat (limited to 'src/node/utils')
-rw-r--r-- | src/node/utils/Minify.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js index 4e1c44db..a4c3efa0 100644 --- a/src/node/utils/Minify.js +++ b/src/node/utils/Minify.js @@ -36,11 +36,14 @@ var TAR_PATH = path.join(__dirname, 'tar.json'); var tar = JSON.parse(fs.readFileSync(TAR_PATH, 'utf8')); // Rewrite tar to include modules with no extensions and proper rooted paths. +var LIBRARY_PREFIX = 'ep_etherpad-lite/static/js'; exports.tar = {}; for (var key in tar) { - exports.tar['/' + key] = - tar[key].map(function (p) {return '/' + p}).concat( - tar[key].map(function (p) {return '/' + p.replace(/\.js$/, '')}) + exports.tar[LIBRARY_PREFIX + '/' + key] = + tar[key].map(function (p) {return LIBRARY_PREFIX + '/' + p}).concat( + tar[key].map(function (p) { + return LIBRARY_PREFIX + '/' + p.replace(/\.js$/, '') + }) ); } |