'use strict';

var config = require('../config');
var gulp   = require('gulp');
var del    = require('del');

gulp.task('clean', function() {

  del([config.dist.root]);

});
'use strict';

var config = require('../config');
var gulp   = require('gulp');
var del    = require('del');

gulp.task('clean', function(cb) {

  del([config.dist.root], cb);

});

Make tasks running in sequence
Make tasks running in sequence

Tasks after "Clean" will be running parallel with "Clean" if there are a lot of files in "build" directory.