From: XhmikosR Date: Mon, 9 Jul 2018 13:37:49 +0000 (+0300) Subject: Commit our svgo config. X-Git-Tag: v4.2.0~382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae53690ab4fbc044f69120f4d495137a79cdca32;p=thirdparty%2Fbootstrap.git Commit our svgo config. --- 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 @@ - +