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

时间:2020-09-14 07:58:55

标签: angular lazy-loading angular9 angular-module

  <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路径提供服务的延迟加载模块设置路径吗?

0 个答案:

没有答案