Skip to content

Commit

Permalink
bug with SVG complexes, removed removeAttrs XMLNS
Browse files Browse the repository at this point in the history
When you work SVG complexes you need the XMLNS attribute if not the browser does not process the SVG.
  • Loading branch information
javierartero committed Apr 2, 2019
1 parent cb38e63 commit f2e78b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@marsbased/svgpack",
"version": "1.0.2",
"version": "1.0.3",
"repository": "[email protected]:MarsBased/svgpack.git",
"author": "marsbased.com",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getSvgoOptions(options) {
{ sortAttrs: true },
{ transformsWithOnePath: false },
{ removeDimensions: false },
{ removeAttrs: { attrs: ["xmlns", "fill=none"] } }
{ removeAttrs: { attrs: ["fill=none"] } }
];
return Object.assign({ plugins }, options);
}

0 comments on commit f2e78b5

Please sign in to comment.