Merge commit '4decea7' into load-css-imports
This commit is contained in:
commit
b96a777e8a
1 changed files with 3 additions and 1 deletions
|
@ -147,8 +147,10 @@ pub fn resolve_css_imports(
|
|||
|
||||
let replacement = format!("\"{}\"", &content);
|
||||
let dest = link.name("to_repl").unwrap();
|
||||
let offset = resolved_css.len() - css_string.len();
|
||||
let target_range = (dest.start() + offset)..(dest.end() + offset);
|
||||
|
||||
resolved_css.replace_range(dest.start()..dest.end(), &replacement);
|
||||
resolved_css.replace_range(target_range, &replacement);
|
||||
}
|
||||
|
||||
if as_dataurl {
|
||||
|
|
Loading…
Reference in a new issue