Merge pull request #145 from snshn/no-images-svg

Empty SVG nodes when excluding images
This commit is contained in:
Sunshine 2020-04-04 15:55:26 -04:00 committed by GitHub
commit a19aa37ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;