Skip to content

Commit f9aa0bf

Browse files
committed
fix: usePolling
1 parent 049ce03 commit f9aa0bf

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

β€Žgulpfile.jsβ€Ž

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,19 @@ function devServer() {
9292
logConnections: true,
9393
});
9494

95-
const watcherCSS = watch(["./src/assets/css/**/*.css", "!./**/.DS_Store"]);
96-
const watcherJs = watch(["./src/assets/js/**", "!./**/.DS_Store"]);
97-
const watcherImg = watch(["./src/assets/img/**", "!./**/.DS_Store"]);
98-
const watcherFonts = watch(["./src/assets/fonts/**", "!./**/.DS_Store"]);
99-
const watcherTheme = watch(["./src/theme/**", "!./**/.DS_Store"]);
100-
const watcherPlugins = watch(["./src/plugins/**", "!./**/.DS_Store"]);
95+
const getWatchOptions = () => {
96+
return {
97+
usePolling: true,
98+
interval: 1000,
99+
};
100+
};
101+
102+
const watcherCSS = watch(["./src/assets/css/**/*.css", "!./**/.DS_Store"], getWatchOptions);
103+
const watcherJs = watch(["./src/assets/js/**", "!./**/.DS_Store"], getWatchOptions);
104+
const watcherImg = watch(["./src/assets/img/**", "!./**/.DS_Store"], getWatchOptions);
105+
const watcherFonts = watch(["./src/assets/fonts/**", "!./**/.DS_Store"], getWatchOptions);
106+
const watcherTheme = watch(["./src/theme/**", "!./**/.DS_Store"], getWatchOptions);
107+
const watcherPlugins = watch(["./src/plugins/**", "!./**/.DS_Store"], getWatchOptions);
101108

102109
watcherCSS.on("all", function (event, path) {
103110
console.log(`${wpFy} - CSS Watcher Event "${event}" triggered for file "${path}" βš™οΈ`);

β€Žinstaller/package-lock.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žinstaller/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wordpressify",
3-
"version": "0.5.0-8",
3+
"version": "0.5.0-9",
44
"description": "Automate your WordPress development workflow.",
55
"keywords": [
66
"babel",

β€Žpackage-lock.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wordpressify",
3-
"version": "0.5.0-8",
3+
"version": "0.5.0-9",
44
"description": "Automate your WordPress development workflow.",
55
"keywords": [
66
"babel",

0 commit comments

Comments
Β (0)