1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-31 09:07:48 +01:00

add scss files to browser-sync

This commit is contained in:
Tim Daubenschütz 2015-05-29 12:08:26 +02:00
parent fe78f30dc8
commit 2cae7ab76d

View File

@ -17,7 +17,7 @@ gulp.task('build', function() {
bundle(false);
});
gulp.task('serve', ['browser-sync', 'sass', 'copy'], function() {
gulp.task('serve', ['browser-sync', 'sass:watch', 'copy'], function() {
bundle(true);
});
@ -35,7 +35,12 @@ gulp.task('sass', function () {
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('./build/css'));
.pipe(gulp.dest('./build/css'))
.pipe(browserSync.stream());;
});
gulp.task('sass:watch', function () {
gulp.watch('./sass/**/main.scss', ['sass']);
});
gulp.task('copy', function () {