budo
budo copied to clipboard
Budo won't GET my modified js files
when I run the following:
budo browser.js:bundle.js --dir examples --host $npm_package_config_demo_host -o --port $npm_package_config_demo_port --live -- -t envify
Budo, at times, does not GET 200 my modified JS files, as a result I cannot see the changes I have made. Is there someway to bypass this?
I'm not sure what you mean exactly. Can you put together a test case showing the problem?
I seem to have a test case here.
@yarom82, this seems to be what we have encountered with budo.
- Clone https://github.com/mightyiam/budo-serving-old .
npm installbudo index.js- Open the link in Google Chrome.
- Open Chrome's DevTools and set the debugger to pause on exceptions.
- Refresh. The debugger should now be paused on this error. Don't resume execution.
- Fix the error by adding the missing
gindependency.jsand save this file. - While the debugger has execution paused, refresh the page. We get the same version of the file, with the error, and naturally, the execution is paused on it again.
Observation 1: this doesn't seem to occur when the error is in the entry file. But, please check for yourself. Observation 2: this doesn't seem to occur when the debugger is not breaking on the error (either because it isn't set to break on exceptions or because DevTools are not open).
Observation 3:
- The debugger did break on the error.
- You fixed the error while execution is paused.
- You did not refresh. You allowed execution to resume and finish.
- You ordered a refresh. Now it did get the fixed version.