@gciluffo Which version of CLI are you using and what kind of template? We have changed that part of the code for version 2.1.2, although the behavior should be the same.
I have tested it again but I still see the same behavior as before. For vanilla JS templates you will need to refresh your browser (CTRL+R) whenever you modify anything, that hasn’t changed. Even new added files to www will be served after refreshing the browser.
Could you please tell me an example where you need to restart monaca preview?
So I have the answer about working on Monaca / Onsen while you fly - seeing as that is what I am currently doing (btw, I swear they are making the seats narrower every month!). My first test was to just connect to in-flight wifi but not actually buy the wifi to see if it would communicate through the router as each device would obtain a valid IP address. While this should work in theory, I could not get past the first hurdle of LocalKit requiring you to login to Monaca.io. The same goes for the debugger.
So, the short answer is, offline development / debugging is not possible using the Monaca tools. A major bummer as I was really hoping to just be able to use Atom with the inspector and the preview tool.
On the plus side though, this forced me to buy the $39.99 in-flight internet so now I can write on the forums and share this experiment with you all!
@Masa Thank you Masa-san. I don’t really have preference - design wise, just as long as it inserts the snippet where the cursor is, I would be happy. As @Leonardo-Augusto can attest, you probably don’t want to follow my UI design - it’s horrible! LOL.
@tony That output is the debug output in your app. You can disable that by setting debug, in the phonegap_custom.js file (of your specific project), to false. Those messages were developer output and do not indicate an error, just that, that is the call being made. By making it false, it may make an error more visible.
It’s because the basic template doesn’t get the resources from Monaca but it’s already included in lib dir. If you want to use internal Monaca’s version, you need to remove all the references of the lib directory in index.html