Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-07-09 16:37:49 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-08-02 19:17:18 +0300
commitae53690ab4fbc044f69120f4d495137a79cdca32 (patch)
treec769be816c21ef3efb9689fc71c68548e94ff6f6 /build
parent198091d6350c24876034c94a21a2cae1465ce5b1 (diff)
Commit our svgo config.
Diffstat (limited to 'build')
-rw-r--r--build/svgo.yml52
1 files changed, 52 insertions, 0 deletions
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