Replies: 1 comment 5 replies
-
You are using watch wrong. Listening for the change event doesn't know about the gulp task system. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What were you expecting to happen?
Gulp should process all the files and write the results to the destination when called from the watcher and creating sourcemap.
What actually happened?
Gulp writes the results on the destination only for the first 46 files in pipelines.
Description and samples
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 watcher compiles only the first 46 files!Here is the function:
This is the function to call from yarn 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 the gulp task. Then the CSS files created successfully for both
build_dev
and the call from the watcher.I tried it with both gulp 4 sourcemaps and
gulp-sourcemaps
package, but both have the issue!npm -v
):Beta Was this translation helpful? Give feedback.
All reactions