Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minifying SVGs fails w/SVGO #26

Open
hhsnopek opened this issue Nov 29, 2017 · 0 comments
Open

Minifying SVGs fails w/SVGO #26

hhsnopek opened this issue Nov 29, 2017 · 0 comments

Comments

@hhsnopek
Copy link

Problem

During the minify process of SVGs, no SVG is produced in the mark up.

Example SVG as a sugarml file: x.sgr

svg(xmlns='http://www.w3.org/2000/svg', viewbox='0 0 24 24')
  path.st0(d='M24 2.4L14.4 12l9.6 9.6-2.4 2.4-9.6-9.6L2.4 24 0 21.6 9.6 12 0 2.4 2.4 0 12 9.6 21.6 0z')

Generated Output (gathered by adding a console.log after lib/modules/minifySvg.js#L8)

NOTE: This generated svg was confirmed invalid using https://validator.w3.org/check

<svg xmlns="http://www.w3.org/2000/svg" , viewbox="0 0 24 24"><path class="st0" d="M24 2.4L14.4 12l9.6 9.6-2.4 2.4-9.6-9.6L2.4 24 0 21.6 9.6 12 0 2.4 2.4 012 9.6 21.6 0z"></path</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant