aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-04-07 20:28:06 +0200
committercodecalm <codecalm@gmail.com>2020-04-07 20:28:06 +0200
commit17a33fa302596b285edd2ae0c6ae0cb9797f72e8 (patch)
treeda9142609d54149890bce86785cef6259d5b3c23 /gulpfile.js
parentnpm files fixes (diff)
parentcurrency yen fix (diff)
downloadtabler-icons-17a33fa302596b285edd2ae0c6ae0cb9797f72e8.tar.xz
Merge branches 'dev' and 'master' of https://github.com/tabler/tabler-icons
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();