Cannot change the 'read' location for chunks
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Windows 10 x64
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
@angular/cli: 1.0.0-beta.30 node: 7.5.0 os: win32 x64 @angular/common: 2.4.6 @angular/compiler: 2.4.6 @angular/core: 2.4.6 @angular/forms: 2.4.6 @angular/http: 2.4.6 @angular/platform-browser: 2.4.6 @angular/platform-browser-dynamic: 2.4.6 @angular/router: 3.4.6 @angular/upgrade: 2.4.6 @angular/cli: 1.0.0-beta.30 @angular/compiler-cli: 2.4.6
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
I have a couple of lazy routes and everything is compiled and generated in "webapproot/ng/dist/" The problem is that even though in my index.html I'm referencing the scripts like this
the lazy routes chunks always try to load from '/0.chunk.js' instead of '/ng/dist/0.chunk.js'
Is there any way to instruct the cli/angular to read the chunks for the proper folder?
The log given by the failure.
Normally this include a stack trace and some more information.
Mention any other details that might be useful.
Thanks! We'll be in touch soon.
I do not think this should be closed, the lazy routes should ideally be taking into account the base href
@cristianbressan I'm trying to load my chunks from a CDN. However adding "publicPath" did not fix the issue as the chunks are not getting loaded from the CDN. Any ideas on how to fix this?
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.