VolkerE has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/395931 )

Change subject: [WIP] build: Use svgo of 'grunt-image'
......................................................................

[WIP] build: Use svgo of 'grunt-image'

Using SVGO for further optimization based on
MediaWiki's SVG Coding Conventions.

Change-Id: I88e83c0a183b38679978b8c75f5ffd6dee9b09ec
---
M Gruntfile.js
1 file changed, 9 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/31/395931/1

diff --git a/Gruntfile.js b/Gruntfile.js
index 2d98d29..b5131a0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -347,10 +347,17 @@
                                        pngout: true,
                                        optipng: true,
                                        advpng: true,
-                                       pngcrush: true
+                                       pngcrush: true,
+                                       svgo: [
+                                               '--pretty',
+                                               '--enable',
+                                               
'sortAttrs,removeRasterImages,removeTitle,removeViewBox,removeXMLProcInst',
+                                               '--disable',
+                                               'cleanupIDs,removeDesc'
+                                       ]
                                },
                                expand: true,
-                               src: 'dist/**/*.png'
+                               src: 'dist/**/*.{png,svg}'
                        }
                },
                cssmin: {

-- 
To view, visit https://gerrit.wikimedia.org/r/395931
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I88e83c0a183b38679978b8c75f5ffd6dee9b09ec
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: VolkerE <volke...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to