From e1cd81e28c951effd3e23fd98d791f67464c77ee Mon Sep 17 00:00:00 2001 From: Richard Hajdu Date: Sun, 28 Jun 2020 18:38:29 +0200 Subject: [PATCH 1/3] Gulp watcher fix for win10 fixes #2642 Fix for browsersync and file watchers not working correctly on windows. --- {{cookiecutter.project_slug}}/gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_slug}}/gulpfile.js b/{{cookiecutter.project_slug}}/gulpfile.js index 1f9884ec8..206f8a019 100644 --- a/{{cookiecutter.project_slug}}/gulpfile.js +++ b/{{cookiecutter.project_slug}}/gulpfile.js @@ -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 From ee9cc876a432b9b9d414c8ff69ba3be0944a8891 Mon Sep 17 00:00:00 2001 From: Richard Hajdu Date: Sun, 28 Jun 2020 18:41:50 +0200 Subject: [PATCH 2/3] Update CONTRIBUTORS.rst --- CONTRIBUTORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 32ba496e8..529c2c40a 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -199,6 +199,7 @@ Listed in alphabetical order. Raphael Pierzina `@hackebrot`_ Reggie Riser `@reggieriser`_ René Muhl `@rm--`_ + Richard Hajdu `@Tusky`_ Roman Afanaskin `@siauPatrick`_ Roman Osipenko `@romanosipenko`_ Russell Davies From 3d37e84973cdc597905d48bac03d21e2eb0adf69 Mon Sep 17 00:00:00 2001 From: Richard Hajdu Date: Tue, 30 Jun 2020 00:43:13 +0200 Subject: [PATCH 3/3] Update CONTRIBUTORS.rst --- CONTRIBUTORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 529c2c40a..bba9554af 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -377,6 +377,7 @@ Listed in alphabetical order. .. _@reggieriser: https://github.com/reggieriser .. _@reyesvicente: https://github.com/reyesvicente .. _@rm--: https://github.com/rm-- +.. _@Tusky: https://github.com/Tusky .. _@rolep: https://github.com/rolep .. _@romanosipenko: https://github.com/romanosipenko .. _@saschalalala: https://github.com/saschalalala