-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
31 lines (25 loc) · 727 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
/* global require: true */
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
autoprefixer = require('gulp-autoprefixer'),
gutil = require('gulp-util');
var paths = {
css: [
'static/scss/readscripture.scss',
]
};
gulp.task('css', function() {
return gulp.src(paths.css)
.pipe(autoprefixer())
.pipe(sass({ style: 'compressed' }))
.pipe(gulp.dest('static/css/'));
});
// Rerun the task when a file changes
gulp.task('watch', function() {
gulp.watch(['static/scss/*.scss'], ['css']);
});
// The default task (called when you run `gulp` from cli)
gulp.task('default', ['css', 'watch']);