I am fully prepared to be told this is unworkable but why can’t Lovelace Resources be managed by the system if you use YAML mode?
Resources are a discrete and (pretty much) a ‘touch once’ part of the config which never needs to be edited; add to or remove from maybe but not edit in the sense that changes are made to what is already there.