aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 967de80..9a5b6e6 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();