I am having trouble getting gulp-watch or gulp-watch-less to shoot after you documented the Examples. I initially came across the lazypipe problem (not shown here), but it seems to me that I'm doing something wrong in the way I use plugins. Here's my dumb code that still doesn't work.
Note that I tried this with the usual gulp -watch and it found the same problem: it does not start subsequent pipes when changing. I will include information about this here in case of a problem.
Here is my gulpfile.
var debug = require ( 'gulp-debug' ); var gulp = require ( 'gulp' ); var less = require ( 'gulp-less' ); var watchLess = require ( 'gulp-watch-less' ); gulp.task ( 'dev-watch', function () {
When I run the task, it executes and perfectly generates the expected files. I see that debug is outputting stream information as well.
When I change the file, I see that watchLess is typing changes:
[10:49:54] LESS saw child.less was changed [10:49:54] LESS saw child.less was changed [10:49:54] LESS saw main.less was changed:by:import [10:49:54] LESS saw main.less was changed:by:import
However, the smaller the task is not performed. It does not seem to emit anything because debugging is not working.
Here is the relevant package.json info:
"devDependencies": { "gulp": "^3.8.7", "gulp-less": "^1.3.6", "gulp-watch": "^1.2.0", "gulp-watch-less": "^0.2.1" }
source share