-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
32 lines (26 loc) · 965 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
// Abaixo com a versão Gulp 4
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', gulp.series( function() {
return gulp.src(['node_modules/bootstrap/scss/*.scss', 'src/scss/*.scss'])
.pipe(sass()) // converter o Sass em CSS
.pipe(gulp.dest('src/css'));
}));
gulp.task('watch', gulp.series( function() {
gulp.watch(['node_modules/bootstrap/scss/*.scss', 'src/scss/*.scss'], gulp.parallel( ['sass'] ));
}));
gulp.task('default', gulp.series( ['sass', 'watch'] ));
// Abaixo com a versão Gulp 3
/*
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function() {
return gulp.src(['node_modules/bootstrap/scss/*.scss', 'src/scss/*.scss'])
.pipe(sass()) // converter o Sass em CSS
.pipe(gulp.dest('src/css'));
});
gulp.task('watch', function() {
gulp.watch(['node_modules/bootstrap/scss/*.scss', 'src/scss/*.scss'], ['sass'] );
});
gulp.task('default', ['sass', 'watch'] );
*/