diff options
author | codecalm <codecalm@gmail.com> | 2020-03-17 22:05:54 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-17 22:05:54 +0100 |
commit | 8a5446a8413d497acdf8f2d0052547985c37ce4b (patch) | |
tree | 18c0290c7bf975bc5a78d4ee0830c8df185fdbd4 /gulpfile.js | |
parent | icon tags (diff) | |
download | tabler-icons-8a5446a8413d497acdf8f2d0052547985c37ce4b.tar.xz |
icon tags
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index d69d7439..b0ccf8e9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -221,7 +221,13 @@ gulp.task('build-copy', function(cb){ }); }); -gulp.task('svg-to-png', gulp.series('build-jekyll', async (cb) => { +gulp.task('clean-png', function(cb){ + cp.exec('rm -fd ./icons-png/*', function() { + cb(); + }); +}); + +gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => { let files = glob.sync("_site/icons/*.svg"); await asyncForEach(files, async function (file, i) { |