Page 1 of 1

Font loading problem

Posted: 04 Jan 2018, 14:16
by hvk
If I run default ultima angular-cli project anywhere else than root directory (ie. under some virtual directory), I get three 'Failed to load resource: the server responded with a status of 404 (not found)' for roboto-v15-latin-regular.woff2, MaterialIcons-regular.woff2 and roboto-v15-latin-700.woff2.

I have changed base-href in index.html. Those font files also fail also with any project based on that ultima angular-cli project.

BR,
Harri

Re: Font loading problem

Posted: 18 Jan 2018, 10:50
by cagatay.civici
Try building with --base-href option so that CLI will add your path to the resources.

https://github.com/angular/angular-cli/wiki/build

Re: Font loading problem

Posted: 22 Jan 2018, 14:06
by hvk
Thanks - but for some reason that doesn't work:
I get this 'GET http://server/vdir/assets/layout/fonts/roboto-v15-latin-regular.woff2 net::ERR_ABORTED'
and also for these: "assets/layout/fonts/MaterialIcons-Regular.woff2" and "assets/layout/fonts/roboto-v15-latin-700.woff2"

Those come (developer console) only when using Chrome, not when using IE and IE dev tools console.