From 8a5446a8413d497acdf8f2d0052547985c37ce4b Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 17 Mar 2020 22:05:54 +0100 Subject: icon tags --- gulpfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index d69d743..b0ccf8e 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) { -- cgit v1.2.1