From 9fc81acc0eaf1acf14233e90041f838f528632d0 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Thu, 15 Nov 2018 12:21:08 +0100 Subject: Cleanup --- gulpfile.babel.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gulpfile.babel.js') diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 95b026f66..ad8adda2e 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -3,10 +3,10 @@ import gulp from 'gulp'; import babel from 'gulp-babel'; import sass from 'gulp-sass'; import server from 'gulp-server-livereload'; -import del from 'del'; import { exec } from 'child_process'; import dotenv from 'dotenv'; import sassVariables from 'gulp-sass-variables'; +import { removeSync } from 'fs-extra'; import config from './package.json'; @@ -49,7 +49,12 @@ function _shell(cmd, cb) { }); } -const clean = () => del([paths.tmp, paths.dest]); +const clean = (done) => { + removeSync(paths.tmp); + removeSync(paths.dest); + + done(); +}; export { clean }; export function mvSrc() { -- cgit v1.2.3-54-g00ecf