From 3e30949826fda8607693d7b3a0f19543dfa4b2c1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 5 Jan 2016 23:21:51 +0000 Subject: [PATCH] Added gulp clean task --- gulpfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2c6d00a10..36f00fdfc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,7 +1,8 @@ 'use strict'; var gulp = require('gulp'), - plugins = require('gulp-load-plugins')(); + plugins = require('gulp-load-plugins')(), + del = require('del'); var config = { cssDir: './source/assets/css', @@ -31,4 +32,9 @@ gulp.task('watch', function () { gulp.watch(config.sassPattern, ['styles']); }); -gulp.task('default', ['watch']); +gulp.task('clean', function () { + del.sync('./source/assets/css/*'); + del.sync('./output_*/assets/css/*'); +}); + +gulp.task('default', ['clean', 'watch']);