Once I enable customColors option, gulp watch fails with an error:
[15:50:44] Starting 'styleguide:generate'... ERROR: customColors option is defined but the file is not copyable. Using default colors. [15:50:46] 'styleguide:generate' errored after 1.84 s [15:50:46] Error: ENOENT: no such file or directory, lstat '\node_modules\sc5-styleguide\lib\dist\css\_styleguide_custom_variables.css' [15:50:46] 'styleguide:applystyles' errored after 1.85 s [15:50:46] 'styleguide' errored after 1.85 s [15:50:46] '<anonymous>' errored after 47 s
And it removes _styleguide_custom_variables.css from a node_modules sc5-styleguide folder.
Once I enable customColors option, gulp watch fails with an error:
[15:50:44] Starting 'styleguide:generate'... ERROR: customColors option is defined but the file is not copyable. Using default colors. [15:50:46] 'styleguide:generate' errored after 1.84 s [15:50:46] Error: ENOENT: no such file or directory, lstat '\node_modules\sc5-styleguide\lib\dist\css\_styleguide_custom_variables.css' [15:50:46] 'styleguide:applystyles' errored after 1.85 s [15:50:46] 'styleguide' errored after 1.85 s [15:50:46] '<anonymous>' errored after 47 s
And it removes _styleguide_custom_variables.css from a node_modules sc5-styleguide folder.
Gulp 'watch' task:
gulp.task('watch', gulp.parallel('styleguide', () => { gulp.watch([PATH.src.style], { delay: 300 }, gulp.parallel('styleguide')); }));