From a106aed0960bd2542e30929af941002807c6323c Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 21 Sep 2020 17:08:01 +0200 Subject: icons optimize --- gulpfile.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index c5d7c83..d2896f8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -416,6 +416,7 @@ gulp.task('optimize', function (cb) { .replace(/\s?\/>/g, ' />') .replace(/\n\s*<(line|circle|path|polyline|rect)/g, "\n <$1") .replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"') + .replace(/d="m/g, 'd="M') .replace(/([Aa])\s?([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/gi, '$1$2 $3 $4 $5 $6 $7 $8') .replace(/\n\n+/g, "\n") @@ -427,7 +428,16 @@ gulp.task('optimize', function (cb) { }) .replace(/