Skip to content

Commit

Permalink
Styling tweaks to minifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava committed Apr 4, 2014
1 parent 83799bb commit 9c59218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/minifiers/minifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ CssTools = {
// Rewrite relative paths to absolute paths.
// We don't rewrite urls starting with a protocol definition such as
// http, https, or data.
if (isRelative(resource.path) && _.isNull(resource.protocol)) {
if (isRelative(resource.path) && resource.protocol === null) {
absolutePath = path.join(basePath, resource.path);
newCssUrl = "url(" + quotes + absolutePath + quotes + ")"
newCssUrl = "url(" + quotes + absolutePath + quotes + ")";
value = value.replace(oldCssUrl, newCssUrl);
}
}

ast.stylesheet.rules[ruleIndex].declarations[declarationIndex].value = value;
declaration.value = value;
});
});
}
Expand Down

0 comments on commit 9c59218

Please sign in to comment.