forked from oligibson/devicon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
38 lines (34 loc) · 830 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var gulp = require('gulp');
var cleanCSS = require('gulp-clean-css');
var concatCSS = require('gulp-concat-css');
var less = require('gulp-less');
var plumber = require('gulp-plumber');
var path = require('path');
gulp.task('concat-css', function() {
gulp
.src(['./devicon.css', './devicon-colors.css'])
.pipe(plumber())
.pipe(concatCSS('./devicon.min.css'))
.pipe(gulp.dest('./'));
});
gulp.task('minify-css', function() {
gulp
.src('./devicon.min.css')
.pipe(plumber())
.pipe(cleanCSS())
.pipe(gulp.dest('./'));
});
gulp.task('less', function() {
return gulp
.src('./less/devicon.less')
.pipe(
less({
paths: [path.join(__dirname, 'less', 'includes')],
}))
.pipe(gulp.dest('./'));
});
gulp.task('default', [
'less',
'concat-css',
'minify-css',
]);