[英]Ionic livereload white screen
幾天來,我試圖讓工作設備實時重新加載。
我已經分叉了Ionic 會議應用程序,為了使用 Auth0 SDK 更改了architect:build
以使用@angular-builders/custom-webpack:browser
而不是@angular-devkit/build-angular:browser
。
這是當前angular.json和自定義webpack.config.js
我在防火牆中啟用了端口 8100(也完全關閉了防火牆),所以當我在 Android 設備上打開 Chrome 並導航到 192.168.51.28:8100 時,我可以看到該應用程序。
命令:1) ionic serve - 服務於 localhost:8100,我可以在 Chrome 中看到該應用程序。
2) ionic cordova run android --livereload-url= http://192.168.51.28:8100 --livereload - This changes config.xml: - <content src="index.html" />
to - adds <allow-navigation href="http://192.168.51.28:8100" sessionid="278685e5" />
- config.xml: https://gist.github.com/mareksip/8945fc3380a1972f3fb9c322bfc3d81d - Deploys and runs the app, later I can see splashscreen ,加載圈,然后只有白屏。 Output 控制台: https://gist.github.com/mareksip/666fc60dd9d4642baba36
你能幫我擺脫白屏嗎? :咧着嘴笑:
Go 到tsconfig.json
並確保在compilerOptions
中target
設置為es5
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.