Gulp watcher fix for win10 fixes
Fix for browsersync and file watchers not working correctly on windows.
@@ -163,9 +163,9 @@ function initBrowserSync() {
// Watch
function watchPaths() {
- watch(`${paths.sass}/*.scss`, styles)
- watch(`${paths.templates}/**/*.html`).on("change", reload)
- watch([`${paths.js}/*.js`, `!${paths.js}/*.min.js`], scripts).on("change", reload)
+ watch(`${paths.sass}/*.scss`{% if cookiecutter.windows == 'y' %}, { usePolling: true }{% endif %}, styles)
+ watch(`${paths.templates}/**/*.html`{% if cookiecutter.windows == 'y' %}, { usePolling: true }{% endif %}).on("change", reload)
+ watch([`${paths.js}/*.js`, `!${paths.js}/*.min.js`]{% if cookiecutter.windows == 'y' %}, { usePolling: true }{% endif %}, scripts).on("change", reload)
}
// Generate all assets
