Replies: 2 comments 5 replies
-
In case it's helpful, here are all my watch-related scripts:
|
Beta Was this translation helpful? Give feedback.
-
Hello, and thanks for posting your question! Because WordPress only loads files from the This also prevents race conditions, since were Browsersync to fire a refresh on changes to the files being watched by Tailwind and esbuild, Browsersync might refresh before the files have actually been rebuilt. That said: Are you finding that a change outside of the |
Beta Was this translation helpful? Give feedback.
-
Hello Greg (and others)...
I am setting my new custom theme up to use Browsersync. I got it working alright, but using the snippet provided --
--files \"theme\"
-- it's only looking in thetheme
directory for changes. How can this be set up so that it also watches thecustom
directory?Hmm, ok... I have changed the flag to read
--files \"theme,custom\"
So now, when I run
npm run watch
, it works perfectly well, but when I runnpm run watch:browser-sync
, it still only syncs when something in thetheme
directory changes.I am so confused, can you help me understand what is happening? Why does
npm run watch
initiate BrowserSync?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions