I'm having a strange issue that I can't figure out regarding gulp.
I have a gulp-sass task. When I change any of my .scss files I want it to recompile my sass files. Pretty simple.
This is my code
gulp-task
gulp.task('sass', function(){
gulp.src('app/styles/app.scss')
.pipe(sass({
includePaths: require('node-bourbon').includePaths
}))
.pipe(gulp.dest('app/assets'));
});
gulp-watch
gulp.task('watch', function(){
gulp.watch('app/styles/**/*.scss', ['sass']);
});
The problem is. When I run gulp watch it all acts normally. If I edit a .scss file it runs the task again. However the changes aren't reflected in the rendered .css file.
The curveball is if I press ctrl+c to stop the gulp.watch cycle THEN the changes are reflected in the rendered .css file
I'm wondering what is causing this to happen.
Any ideas?
gulpfile.js
that exhibits the problem? – Zak Johnson