-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
32 lines (27 loc) · 846 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
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var cleanCSS = require('gulp-clean-css');
var concat = require('gulp-concat');
gulp.task('sass', function() {
gulp.src('./sass/main.sass')
.pipe(sass())
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest('./css/'));
});
gulp.task('compress', function() {
gulp.src([
'vendors/bootstrap/css/bootstrap.min.css',
'vendors/font-awesome/css/font-awesome.min.css',
'vendors/slick/slick.css',
'vendors/slick/slick-theme.css',
'css/main.css',
])
.pipe(concat('build.css'))
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(gulp.dest('./css/'));
});
gulp.task('automate', function() {
gulp.watch(['./sass/*.sass', './sass/components/*.sass'], ['sass']);
});
gulp.task('default', ['sass']);