gulp.watch not working in Gulp 4.0.0
See original GitHub issueWhat were you expecting to happen?
I have this simple gulp file
gulp.task('watch', () => {
gulp.watch('path/to/file.scss')
.on('change', gulp.series('sass'));
})
I run gulp watch
then save file.scss
and It should run the 'sass'
task.
What actually happened?
I save file.scss
and nothing happens
What version of gulp are you using?
Gulp 4.0.0
What versions of npm and node are you using? npm: 5.5.1 node: 6.12.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Gulp.watch tasks not called (gulp 4.0.0) - Stack Overflow
I have just migrated an old project from gulp 3 to gulp 4.0.0. I'm having trouble making gulp.watch tasks run within my watch...
Read more >watch() - gulp.js
name type default
ignoreInitial boolean true
delay number 200
queue boolean true
Read more >Gulp watch not working as expected - Laracasts
Gulp watch not working as expected. Hello,. I'm having some trouble with Gulp not watching/compiling my files correctly. See the following code: gulpfile.js....
Read more >Gulp 4: A Sample Project - Shark Coder
Here is a simple guide on installing and configuring Gulp 4 for those who design a ... If they are not installed, run...
Read more >Setting up gulp 4 for automatic Sass compilation and CSS ...
We should install gulp-cli globally and gulp itself as a development dependency. This way you can call the gulp command anywhere (thanks to...
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
Same as #2093. You shouldn’t use the
path
methods on glob patterns.Still, my side gulp watch is not running it shows command not found