fix: fix circle in svg (#1621)

fixes #1616
This commit is contained in:
Nolan Lawson 2019-10-31 23:01:44 -07:00 committed by GitHub
parent 4ecb04588c
commit da42c8b4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ async function readSvg (svg) {
const content = await readFile(filepath, 'utf8')
const optimized = (await svgo.optimize(content))
const $optimized = $(optimized.data)
const $path = $optimized.find('path').removeAttr('fill')
const $path = $optimized.find('path, circle').removeAttr('fill')
const $symbol = $('<symbol></symbol>')
.attr('id', svg.id)
.attr('viewBox', $optimized.attr('viewBox'))