Closed motatoes closed 6 years ago
Would turning off removeAttributeQuotes
help?
Hi @devgeeks
I can confirm that the following fixes the reload issue:
1- turning off removeAttributeQuotes
as you stated and
2- Adding the MIME type to the cordova script tag in src/index.html
:
<script type="text/javascript" src="cordova.js"></script>
@motatoes OK. Thanks for working that out. I'll update all three templates with those fixes and publish to npm!
Published to NPM as well.
Thanks @motatoes
Related to this issue, I was having problems testing my app in the phonegap app, since it did not refresh automatically. The fix for me was to have the
<script type="text/javascript" src="cordova.js"></script>
as the last script in the document (it is strange).As a fix for this I had to:
inject: true
toinject: false
in bothbuild\webpack-dev.conf.js
andbuild\webpack-prod.conf.js
.src\index.html
with:I can submit a PR with these changes if required :)