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:
parent
fe78f30dc8
commit
2cae7ab76d
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user