diff options
author | codecalm <codecalm@gmail.com> | 2020-04-07 20:28:06 +0200 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-04-07 20:28:06 +0200 |
commit | 17a33fa302596b285edd2ae0c6ae0cb9797f72e8 (patch) | |
tree | da9142609d54149890bce86785cef6259d5b3c23 /gulpfile.js | |
parent | npm files fixes (diff) | |
parent | currency yen fix (diff) | |
download | tabler-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.js | 4 |
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(); |