-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
42 lines (31 loc) · 932 Bytes
/
gulpfile.js
File metadata and controls
42 lines (31 loc) · 932 Bytes
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
39
40
41
42
const gulp = require('gulp'),
sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
var reload = browserSync.reload;
gulp.task('sass', function (){
gulp.src('./scss/*style.scss')
.pipe(sass({
outputStyle: 'compact'
}))
.pipe(gulp.dest('./'))
.pipe(browserSync.stream());
})
// Watch scss AND html files, doing different things with each.
gulp.task('serve', function () {
//Variables para que sepa que archivos refrescar
var files = [
'./style.css',
'./*.php',
'./template-parts/*.php',
'**/*.js',
// include specific files and folders
'screenshot.png',
];
// Serve files from the root of this project
browserSync.init(files, {
proxy: "urbanvalue.local/",
});
});
gulp.task('default', ['sass', 'serve'], function(){
gulp.watch("scss/*.scss", ['sass']);
});