Replies: 4 comments 4 replies
-
may be nothing but in |
Beta Was this translation helpful? Give feedback.
-
what version of NodeJS? Want to rule out a problem with chokidar 2 on v14+ |
Beta Was this translation helpful? Give feedback.
-
I suspect this is a bug. I have a similar, and possibly related, issue.
cssWatchDistFile always fails to trigger the reload, but the other two don't. cssWatchDistFile is the result of a slightly more complicated task compared to the other two. (** are there as a highlight - I wanted bold, but Markdown doesn't seem to allow that in a code block) but it works doing this: In principle, both statements should be identical, but that extra function call seems to, possibly, add just enough delay to make it work. Full gulpfile.js attached. CLI version: 2.3.0 |
Beta Was this translation helpful? Give feedback.
-
There is another duplicated ticket #2552 contains the answer to fixing the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a gulp task that converts Scss to CSS and makes sourcemaps. When I call it from a
gulp.series
, it works fine. But the same function called from a watch compiles only the first 46 files!Here is the function:
This is the function to call from yart for build:
export const build_dev = gulp.series(themesStyles)
When the function called from this one, All the scss files (98) converted to CSS and the sourcemaps files created successfully.
We have another task:
export const dev = gulp.series(devServer)
The
devServer
function is:The issue is when this gulp watch call
themesStyles()
then the logs on the terminal show all the files are compiled and there is no error. But when I check the files only the first 46 files get compiled.I tested and it works fine in just one case that I remove sourcemaps option from gulp task. Then the css files created successfully for both
build_dev
and the call from the watcher.Also, I tried it with both gulp 4 sourcemaps and
gulp-sourcemaps
package, but both do the same!Does anyone have any idea why this is happening? Should I make a bug report?
Beta Was this translation helpful? Give feedback.
All reactions