-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
30 lines (27 loc) · 919 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
// Automate my builds
var gulp = require('gulp');
var prop = require('./package.json');
var minify = require('gulp-clean-css');
var $ = require('gulp-load-plugins')();
gulp.task('compile', function() {
return gulp.src([
'./public/css/app.css',
'./public/css/scrollbar.css',
'./public/css/controls/dashboard.css',
'./public/css/controls/radiobutton.css',
'./public/css/controls/search.css',
'./public/css/controls/toast.css',
'./public/css/controls/toggle.css',
'./public/css/controls/volume.css'
])
.pipe($.concat('dist.css'))
.pipe($.size())
.pipe(gulp.dest('./public/css/'));
});
gulp.task('minify', gulp.series('compile', function() {
return gulp.src(['./public/css/dist.css'])
.pipe(minify())
.pipe($.size())
.pipe($.concat('dist.min.css'))
.pipe(gulp.dest('./public/css/'));
}));