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
{{ message }}
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
I have a poorly-behaving library (Cordova) that is constantly updating package.json even when there is nothing actually changed. That, in turn, is making Brunch's watcher rebuild, which then makes this library reload the browser, update package.json, and start the infinite cycle all over again. As it is now, I have to keep the Brunch watcher off and manually rebuild after every change I want to try via Cordova's serve command for the browser.
This brings up a possible (though somewhat rare) use case for having Brunch's watcher ignore changes to the package.json file. I tried setting watcher.ignored in the config to /package\.json/ to no effect. Is it worth it to have the option to ignore changes to package.json with respect to the watcher? Did I miss a possible config setting to achieve this?
Expected behavior
It could be useful to have an option to instruct the watcher to ignore package.json file changes.
Actual behavior
The following config setting didn't work as expected. Most other Brunch conventions/defaults are overridable.
This discussion was converted from issue #1827 on August 07, 2021 20:21.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
I have a poorly-behaving library (Cordova) that is constantly updating package.json even when there is nothing actually changed. That, in turn, is making Brunch's watcher rebuild, which then makes this library reload the browser, update package.json, and start the infinite cycle all over again. As it is now, I have to keep the Brunch watcher off and manually rebuild after every change I want to try via Cordova's serve command for the browser.
Here's the issue filed with Cordova for reference.
This brings up a possible (though somewhat rare) use case for having Brunch's watcher ignore changes to the package.json file. I tried setting watcher.ignored in the config to
/package\.json/
to no effect. Is it worth it to have the option to ignore changes to package.json with respect to the watcher? Did I miss a possible config setting to achieve this?Expected behavior
It could be useful to have an option to instruct the watcher to ignore package.json file changes.
Actual behavior
The following config setting didn't work as expected. Most other Brunch conventions/defaults are overridable.
watcher: { ignored: /package\.json/ }
Environment
package.json
contentsbrunch config contents
Other useful files, when present (log,
bower.json
etc.)n/a
Beta Was this translation helpful? Give feedback.
All reactions