I am using an “after_prepare” hook similar to the Replace Text Depending on Environment hook discussed in this blog post: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/
Here is my hook: https://gist.github.com/jbeuckm/3064e638b1cad5a5c38b
Running or emulating the app without livereload, the strings are replaced and my app works as intended. When I livereload, the console shows logs from my hook, but the staged javascript files do not have the replacement. How can I make the hook function normally for livereload?
I am replacing URLs that will be proxied for livereload. If there is a better way than this hook, could you point me to it?