empty SVG nodes if --no-images

pull/145/head
Sunshine 4 years ago
parent 746c7f05de
commit 1d6217ef5a
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1

@ -346,6 +346,11 @@ pub fn walk_and_embed_assets(
}
}
}
"svg" => {
if opt_no_images {
node.children.borrow_mut().clear();
}
}
"source" => {
for attr in attrs_mut.iter_mut() {
let attr_name: &str = &attr.name.local;

Loading…
Cancel
Save