title: Does --deploy-url adjust the base Url dynamically if an Angular app is served from a CDN?
body: <p>We have an angular app which we wanna build once and deploy to multiple environments. We wanna serve this app through CDNs, which we have setup for each environment, the base URL for these CDNs are unknown at build time and need to be set dynamically based on the environment during runtime. The build assets are deployed to the following 'dist' subfolder on the CDN.</p>
  <pre><code>--{root}
    |--static
       |--dist
  </code></pre>
  <p>We are providing the <code>--deploy-url=static/dist</code> argument to angular CLI during build time.</p>
  <p>now, if the URL for our environment is <code>https://qa.example.com</code>
  and the base URL for the CDN for this environment is <code>https://qa-cdn.example.com</code></p>
  <p>Assuming that we have served the initial bundles i.e. <code>main.js</code> and <code>runtime.js</code> successfully from the CDN i.e. <code>https://qa-cdn.example.com/static/dist/</code>. Will the lazy chunks and other assets like images load from the CDN as well? i.e. while looking for these lazy chunks and assets, will Webpack resolve the deploy URL to be <code>https://qa-cdn.example.com/static/dist/</code> or <code>https://qa.example.com/static/dist/</code>?</p>
  <p>P.S. - Unfortunately, our application is not a SPA and setting or modifying the <code>&lt;base /&gt;</code> tag is not an option (if that could even help us in the first place).</p>