Ionic livereload 白屏

Ionic livereload white screen

几天来,我一直在尝试让工作设备实时重新加载。

我已经分叉 Ionic conference app 并且为了使用 Auth0 SDK 将 architect:build 更改为使用 @angular-builders/custom-webpack:browser 而不是 @angular-devkit/build-angular:browser

这是当前的 angular.json and custom webpack.config.js

我在防火墙中启用了端口 8100(也完全关闭了防火墙),所以当我在 Android 设备上打开 Chrome 并导航到 192.168.51.28:8100 时,我可以看到该应用程序。

命令: 1) 离子发球 - 服务于 localhost:8100,我可以在 Chrome.

中看到该应用程序

2) ionic cordova 运行 android --livereload-url=http://192.168.51.28:8100 --livereload - 这改变了 config.xml : - <content src="index.html" /> 至 - 添加 <allow-navigation href="http://192.168.51.28:8100" sessionid="278685e5" /> - config.xml:https://gist.github.com/mareksip/8945fc3380a1972f3fb9c322bfc3d81d - 部署并 运行s 应用程序,稍后我可以看到启动画面、加载圆圈,然后只有白屏。 控制台输出:https://gist.github.com/mareksip/666fc0dd946420166dc7a05d039b3b1a

你能帮我摆脱白屏吗? :咧嘴笑:

转到 tsconfig.json 并确保在 compilerOptions 中将 target 设置为 es5