aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-17 22:05:54 +0100
committercodecalm <codecalm@gmail.com>2020-03-17 22:05:54 +0100
commit8a5446a8413d497acdf8f2d0052547985c37ce4b (patch)
tree18c0290c7bf975bc5a78d4ee0830c8df185fdbd4 /gulpfile.js
parenticon tags (diff)
downloadtabler-icons-8a5446a8413d497acdf8f2d0052547985c37ce4b.tar.xz
icon tags
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js8
1 files changed, 7 insertions, 1 deletions
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) {