From a59067def71df4800ae6a7fcb36a51c659e3c93b Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 3 Feb 2015 20:13:29 -0600 Subject: [PATCH] Corrected build directory path and clean sprites directory before generating sprites --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index e4589fbd7c..c58ddb8594 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -60,7 +60,7 @@ gulp.task('git_changelog', function() { }); gulp.task('clean', function(cb) { - rimraf('./build', cb); + rimraf('./webiste/build', cb); }); gulp.task('stylus', function() { @@ -84,6 +84,8 @@ gulp.task('hashres', function() { }); gulp.task('sprite', function(cb) { + console.log('Cleaning sprites directory...'); + rimraf.sync('./common/dist/sprites'); // Mobile Safari can't render image files > 1024x1024*3, so we have to break it down to multiple // files in this hack approach. See https://github.com/Ensighten/grunt-spritesmith/issues/67#issuecomment-34786248 var images = glob.sync('./common/img/sprites/spritesmith/**/*.png');