From ae53690ab4fbc044f69120f4d495137a79cdca32 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 9 Jul 2018 16:37:49 +0300 Subject: [PATCH] Commit our svgo config. --- build/svgo.yml | 52 +++++++++++++++++++ .../4.1/assets/brand/bootstrap-outline.svg | 2 +- .../4.1/assets/brand/bootstrap-punchout.svg | 2 +- 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 build/svgo.yml diff --git a/build/svgo.yml b/build/svgo.yml new file mode 100644 index 0000000000..3d6a039d55 --- /dev/null +++ b/build/svgo.yml @@ -0,0 +1,52 @@ +# Usage: +# install svgo globally: `npm i -g svgo` +# svgo --config=build/svgo.yml --input=foo.svg + +# https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md +# replace default config + +multipass: true +full: true + +# https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options + +js2svg: + pretty: true + indent: 2 + +plugins: + - cleanupAttrs: true + - cleanupEnableBackground: true + - cleanupIDs: true + - cleanupListOfValues: true + - cleanupNumericValues: true + - collapseGroups: true + - convertColors: true + - convertPathData: true + - convertShapeToPath: true + - convertStyleToAttrs: true + - convertTransform: true + - inlineStyles: true + - mergePaths: true + - minifyStyles: true + - moveElemsAttrsToGroup: true + - moveGroupAttrsToElems: true + - removeComments: true + - removeDesc: true + - removeDoctype: true + - removeEditorsNSData: true + - removeEmptyAttrs: true + - removeEmptyContainers: true + - removeEmptyText: true + - removeHiddenElems: true + - removeMetadata: true + - removeNonInheritableGroupAttrs: true + - removeTitle: true + - removeUnknownsAndDefaults: true + - removeUnusedNS: true + - removeUselessDefs: true + - removeUselessStrokeAndFill: true + - removeViewBox: false + - removeXMLNS: false + - removeXMLProcInst: false + - sortAttrs: true diff --git a/site/docs/4.1/assets/brand/bootstrap-outline.svg b/site/docs/4.1/assets/brand/bootstrap-outline.svg index 215be05852..f331db63f3 100644 --- a/site/docs/4.1/assets/brand/bootstrap-outline.svg +++ b/site/docs/4.1/assets/brand/bootstrap-outline.svg @@ -1,4 +1,4 @@ - + diff --git a/site/docs/4.1/assets/brand/bootstrap-punchout.svg b/site/docs/4.1/assets/brand/bootstrap-punchout.svg index 9f4f529ccd..8538ee95c8 100644 --- a/site/docs/4.1/assets/brand/bootstrap-punchout.svg +++ b/site/docs/4.1/assets/brand/bootstrap-punchout.svg @@ -1,4 +1,4 @@ - +