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

Support unquoted attributes #9

Closed
vzaidman opened this issue Mar 9, 2017 · 1 comment
Closed

Support unquoted attributes #9

vzaidman opened this issue Mar 9, 2017 · 1 comment

Comments

@vzaidman
Copy link

vzaidman commented Mar 9, 2017

if you have svgs with unquoted attributes such as:
xmlns="http://www.w3.org/2000/svg" width=20px height=20px

The error: Error in parsing SVG: Unquoted attribute value is emitted.

I've created a loader to temporary fix this in webpack:
https://www.npmjs.com/package/xml-fix-loader

{
  test: /\.svg$/,
  use: [
    { loader: 'file-loader' },
    { loader: 'svgo-loader' },
    { loader: 'xml-fix-loader' }
  ]
}

Also opened a bug on svgo:
svg/svgo#678

@rpominov
Copy link
Member

rpominov commented Mar 9, 2017

Sounds like an issue with SVGO itself, and should be fixed there. Thank you for creating issue in SVGO repository. This one should be closed I think.

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

2 participants