From e3411319b84780e6e9ad55c5977753bb1ac6ef86 Mon Sep 17 00:00:00 2001 From: kayone Date: Fri, 29 Aug 2014 23:19:57 -0700 Subject: [PATCH] fixed gulp less --- gulp/errorHandler.js | 7 +++++++ gulp/imageMin.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 gulp/errorHandler.js diff --git a/gulp/errorHandler.js b/gulp/errorHandler.js new file mode 100644 index 000000000..eb6172df5 --- /dev/null +++ b/gulp/errorHandler.js @@ -0,0 +1,7 @@ +module.exports = { + onError:function (error) { + //If you want details of the error in the console + console.log(error.toString()); + this.emit('end'); + } +} \ No newline at end of file diff --git a/gulp/imageMin.js b/gulp/imageMin.js index 1dec8fa00..0c51121bb 100644 --- a/gulp/imageMin.js +++ b/gulp/imageMin.js @@ -12,5 +12,5 @@ gulp.task('imageMin', function () { svgoPlugins: [{removeViewBox: false}] })) .pipe(print()) - .pipe(gulp.dest(paths.src.images)); + .pipe(gulp.dest(paths.src.content + 'Images/')); }); \ No newline at end of file