aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
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) {