not working with gulp 4.0
See original GitHub issueTask did not finish Starting gulpSass…
var gulp = require('gulp');
var sass = require('gulp-sass');
var paths = {
sass: 'src/css/**/*.scss',
};
gulp.task('sass', function () {
return sass(paths.sass)
.on('error', sass.logError)
.pipe(gulp.dest('src/css'));
});
function watch() {
livereload.listen();
...
gulp.watch(paths.sass, sass);
}
gulp.task('build', gulp.parallel(sass, ... watch));
gulp.task('default', gulp.series('build'));
Issue Analytics
- State:
- Created 8 years ago
- Comments:22
Top Results From Across the Web
Gulp 4 watch not working, only run one time - Stack Overflow
I changed from Gulp 3 to Gulp 4, but I can't get it to work. When I run gulp and save SCSS or...
Read more >gulp 4 file changes tracking with not working #2394 - GitHub
If the bug is in a plugin, open an issue on the plugin repository, not the gulp repository. If you're getting a deprecated...
Read more >Fixing gulp-sass issues in gulp 4. - DEV Community
This article is not the full definitive gulp article that I promised to post. This article is an important fix for gulp-sass in...
Read more >A quick guide for switching to gulp 4 | by Jhey Tompkins
A new version of gulp is here. What do you need to know? Will your gulpfile s break? There are various changes listed...
Read more >gulp.start is not a function - Material Design for Bootstrap
Gulp 4 no longer accepts start, you need to use either series which will run the tasks one after the other (as the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TeodorKolev I wanted to post the actual issue (in case you hadn’t resolved it)…
You are actually calling gulp-sass (the npm module, which is not a gulp task) directly, instead of the sass task. Try naming you sass task something different and it will complete properly. Hope that helps anyone who made the same mistake and ends up here!
Ah, I forgot about your PR. So this can be closed then?