javascript - Assets not found by Cordova/Phonegap -
i have ported html5 app phonegap, beingness had html5 app, , included in construction phonegap requires.
i have reference css/js files in index.html so:
<link rel="stylesheet" href="css/app.css"> <script src="js/app.js"></script>
when run "phonegap serve" site runs fine, same did before - , finds files. when run "phonegap run ios" application loads on device no js or css.
inspecting app in safari shows url of resources are, example, file:///css/app.css.
why when serve project works not on device?
i found reply had introduced
<base href="/">
and needed
<base href=".">
javascript ios css cordova
No comments:
Post a Comment