mirror of
https://github.com/nolanlawson/pinafore
synced 2025-02-03 07:15:47 +01:00
parent
4ecb04588c
commit
da42c8b4c1
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user