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
Font loading problem
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try building with --base-href option so that CLI will add your path to the resources.
https://github.com/angular/angular-cli/wiki/build
https://github.com/angular/angular-cli/wiki/build
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests