You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Currently gulp is not triggering the tasks copy & contact when new files are added to the source directory. They are only being triggered when the files have been changed.
How to fix (lib/gulp.js)
If the glob string provided to the watch task is an absolute path starting with a / then gulp will not trigger for new files.
We can pass an options argument to the watch tasks and set the cwd property with the directory that will be used to build absolute paths.
Problem
Currently gulp is not triggering the tasks
copy
&contact
when new files areadded
to the source directory. They are only being triggered when the files have beenchanged
.How to fix (lib/gulp.js)
If the glob string provided to the watch task is an absolute path starting with a
/
then gulp will not trigger for new files.We can pass an
options
argument to the watch tasks and set thecwd
property with the directory that will be used to build absolute paths.Also update the
copy
method and check if the type of the event wasadded
.+ if (type === 'changed' || type === 'added') {
The text was updated successfully, but these errors were encountered: