forked from xtrasimplicity/CD-finder
-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
36 lines (27 loc) · 856 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
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var bs = require('browser-sync').create();
var plumber = require('gulp-plumber');
gulp.task('browser-sync', ['sass'], function() {
bs.init({
proxy: "http://modularstorage.test/finder"
});
});
gulp.task('sass', function () {
return gulp.src('sass/*.scss')
.pipe(plumber())
.pipe(sass())
.pipe(autoprefixer({
browsers: ['last 4 versions'],
cascade: false
}))
.pipe(gulp.dest('css'))
.pipe(bs.stream());
});
gulp.task('watch', ['browser-sync'], function () {
gulp.watch("sass/*.scss", ['sass']);
// gulp.watch("**/*.php").on('change', bs.reload);
gulp.watch("**/*.css").on(['add', 'change'], bs.reload);
});
gulp.task('default', ['sass', 'watch']);