从CDN中按角度加载延迟加载的模块

问题描述

  <html lang="en">
   <head>
   link href="MY-CDN-PATH/styles.028e2d2ecf1b16206359.css" rel="stylesheet"  type="text/css"/>
   </head>
   <body>
      <app-root></app-root>
      <script src="https://MY-CDN-PATH/runtime.24248252fa5d092174cd.js" type="module"></script>
      <script src="https://MY-CDN-PATH/polyfills.9d865c4e055183e2a9fe.js" type="module"></script>
      <script src="https://MY-CDN-PATH/scripts.b9bbd771b6e5188128c7.js" type="module"></script>
      <script src="https://MY-CDN-PATH/main.dfa0c749560539af4c24.js" type="module"></script>
      <script src="https://MY-CDN-PATH/common.45a6ad43242581d6f4b4.js" type="module"></script>
   </body>
 </html>

我正在使用上述HTML从CDN加载我的角度应用程序。我的应用程序正在从CDN加载上述js文件

问题:有什么方法可以从CDN加载延迟加载的模块。当前,它是从托管它的服务器路径加载的。我可以在HTML中为从CDN路径提供服务的延迟加载模块设置路径吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)