You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that when I run npm watch:css it always immediately runs the npm run build:css without waiting for a changed file. Is this expected behavior? I would expect that the command does nothing until the first change is detected.
If this is by design, can we get a command flag that waits for the first change?
Additional info: I'm running this inside a docker container and the watched directory is a volume mounted from the host machine.
The text was updated successfully, but these errors were encountered:
That we have different expectations about watch interestingly brings up the throttle and debounce functions in lodash... both of which have flags for leading or trailing.
if you can't be bothered waiting, there is another npm package called watch-cli that performs a trailing action instead of this packages leading behaviour (which I prefer).
Ok, thanks. Still I it really depends on the use case, so both behaviors can make sense, depending on the project setup. So an additional option flag would be great.
I have a simple npm-script setup like:
I find that when I run
npm watch:css
it always immediately runs thenpm run build:css
without waiting for a changed file. Is this expected behavior? I would expect that the command does nothing until the first change is detected.If this is by design, can we get a command flag that waits for the first change?
Additional info: I'm running this inside a docker container and the watched directory is a volume mounted from the host machine.
The text was updated successfully, but these errors were encountered: