From 7ac7ca0c2b7df07c6e02749440ab2ebc196766dd Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 7 Apr 2020 20:26:06 +0200 Subject: currency yen --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 967de80b..9a5b6e6d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -414,7 +414,9 @@ gulp.task('optimize', function (cb) { .replace(/a\s?([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/g, 'a$1 $2 $3 $4 $5 $6 $7') .replace(/\n\n+/g, "\n"); - fs.writeFileSync(file, svgFileContent); + if(svgFile.toString() !== svgFileContent) { + fs.writeFileSync(file, svgFileContent); + } }); cb(); -- cgit v1.2.1