From f2e78b53c82bc73641d4ad8509031a2ec82efd0b Mon Sep 17 00:00:00 2001 From: Javier Artero Date: Tue, 2 Apr 2019 18:04:01 +0200 Subject: [PATCH] bug with SVG complexes, removed removeAttrs XMLNS When you work SVG complexes you need the XMLNS attribute if not the browser does not process the SVG. --- package.json | 2 +- src/optimizer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9b1d406..d3da0fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@marsbased/svgpack", - "version": "1.0.2", + "version": "1.0.3", "repository": "git@github.com:MarsBased/svgpack.git", "author": "marsbased.com", "license": "MIT", diff --git a/src/optimizer.js b/src/optimizer.js index 12652c8..e4bbab1 100644 --- a/src/optimizer.js +++ b/src/optimizer.js @@ -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); }