diff options
1 files changed, 15 insertions, 0 deletions
| -rw-r--r-- | gulpfile.js | 15 |
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']); |