empty SVG nodes if --no-images

This commit is contained in:
Sunshine 2020-04-03 21:56:46 -04:00
parent 746c7f05de
commit 1d6217ef5a
No known key found for this signature in database
GPG Key ID: B80CA68703CD8AB1
1 changed files with 5 additions and 0 deletions

View File

@ -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;