From 9c99beb818c1991a3525219ab5310cf0c8e4ec1b Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Fri, 14 Oct 2016 10:31:44 -0600 Subject: [PATCH 1/2] Use same override for svgo@0.7.1 as 0.6.1 svgo released a new version that still has not fixed https://github.com/svg/svgo/issues/504. Since the dependencies are not statically declared, we need this override. --- package-overrides/npm/svgo@0.7.1.json | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 package-overrides/npm/svgo@0.7.1.json diff --git a/package-overrides/npm/svgo@0.7.1.json b/package-overrides/npm/svgo@0.7.1.json new file mode 100644 index 0000000..5cae151 --- /dev/null +++ b/package-overrides/npm/svgo@0.7.1.json @@ -0,0 +1,47 @@ +{ + "meta": { + "lib/svgo/config.js": { + "deps": [ + "../../plugins/removeDoctype", + "../../plugins/removeXMLProcInst", + "../../plugins/removeComments", + "../../plugins/removeMetadata", + "../../plugins/removeEditorsNSData", + "../../plugins/cleanupAttrs", + "../../plugins/minifyStyles", + "../../plugins/convertStyleToAttrs", + "../../plugins/cleanupIDs", + "../../plugins/removeRasterImages", + "../../plugins/removeUselessDefs", + "../../plugins/cleanupNumericValues", + "../../plugins/cleanupListOfValues", + "../../plugins/convertColors", + "../../plugins/removeUnknownsAndDefaults", + "../../plugins/removeNonInheritableGroupAttrs", + "../../plugins/removeUselessStrokeAndFill", + "../../plugins/removeViewBox", + "../../plugins/cleanupEnableBackground", + "../../plugins/removeHiddenElems", + "../../plugins/removeEmptyText", + "../../plugins/convertShapeToPath", + "../../plugins/moveElemsAttrsToGroup", + "../../plugins/moveGroupAttrsToElems", + "../../plugins/collapseGroups", + "../../plugins/convertPathData", + "../../plugins/convertTransform", + "../../plugins/removeEmptyAttrs", + "../../plugins/removeEmptyContainers", + "../../plugins/mergePaths", + "../../plugins/removeUnusedNS", + "../../plugins/transformsWithOnePath", + "../../plugins/sortAttrs", + "../../plugins/removeTitle", + "../../plugins/removeDesc", + "../../plugins/removeDimensions", + "../../plugins/removeAttrs", + "../../plugins/addClassesToSVGElement", + "../../plugins/removeStyleElement" + ] + } + } +} From 4a9f5daf6cc508ab6d4437cd13436377cb6db78c Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Fri, 14 Oct 2016 10:45:13 -0600 Subject: [PATCH 2/2] Adding in new plugins needed for 0.7.1 --- package-overrides/npm/svgo@0.7.1.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package-overrides/npm/svgo@0.7.1.json b/package-overrides/npm/svgo@0.7.1.json index 5cae151..e50978d 100644 --- a/package-overrides/npm/svgo@0.7.1.json +++ b/package-overrides/npm/svgo@0.7.1.json @@ -40,7 +40,10 @@ "../../plugins/removeDimensions", "../../plugins/removeAttrs", "../../plugins/addClassesToSVGElement", - "../../plugins/removeStyleElement" + "../../plugins/removeStyleElement", + "../../plugins/removeXMLNS", + "../../plugins/removeElementsByAttr", + "../../plugins/addAttributesToSVGElement" ] } }