From 8ffe2149f8f51e97c27084b0046b697b67a445f9 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 4 Oct 2016 16:50:58 +0800 Subject: Update cleanup code and fix the responsive resizer layout bug --- gulpfile.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 23ec1f8..3f9a922 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -25,4 +25,19 @@ gulp.task('build', function() { .pipe(gulp.dest('./dist')) }); +gulp.task('tools', function() { + gulp.src('tools/**/*.less') + .pipe(less({ + plugins: [autoprefix] + })) + .pipe(csscomb()) + .pipe(cleancss()) + .pipe(rename({ + suffix: '.min' + })) + .pipe(gulp.dest(function(file) { + return file.base; + })) +}); + gulp.task('default', ['build']); -- cgit v1.3.1-23-gd82d