mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Handle relative paths properly, when @import
ing.
This commit is contained in:
parent
d7940cf8c5
commit
0a9d02562d
3 changed files with 4 additions and 3 deletions
|
@ -409,7 +409,8 @@ function compressJS(content)
|
|||
function compressCSS(filename, content, callback)
|
||||
{
|
||||
try {
|
||||
new CleanCSS({relativeTo: ROOT_DIR}).minify(content, function (errors, minified) {
|
||||
var base = path.join(ROOT_DIR, path.dirname(filename));
|
||||
new CleanCSS({relativeTo: base}).minify(content, function (errors, minified) {
|
||||
if (errors) {
|
||||
// On error, just yield the un-minified original.
|
||||
callback(null, content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue