Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ gulp.task('styles', () => {
.pipe($.if('*.css', $.minifyCss()))
.pipe($.size({title: 'styles'}))
.pipe($.sourcemaps.write('./'))
.pipe(gulp.dest('dist/styles'));
.pipe(gulp.dest('dist/styles'))
.pipe(browserSync.stream({match: '**/*.css'}));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this line for .pipe($.if(bs.active, bs.stream({ match: '**/*.css' })));. Because the gulp task style can be executed without Browsersync.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done =)

});

// Concatenate and minify JavaScript. Optionally transpiles ES2015 code to ES5.
Expand Down Expand Up @@ -175,7 +176,7 @@ gulp.task('serve', ['scripts', 'styles'], () => {
});

gulp.watch(['app/**/*.html'], reload);
gulp.watch(['app/styles/**/*.{scss,css}'], ['styles', reload]);
gulp.watch(['app/styles/**/*.{scss,css}'], 'styles');
gulp.watch(['app/scripts/**/*.js'], ['lint', 'scripts']);
gulp.watch(['app/images/**/*'], reload);
});
Expand Down