Closed leobispo closed 5 years ago
For these 2 specific resources, you're better off just adding those to the index.html pointed to a popular cdn instead of bundling and serving these.
You may have better luck just using scss and importing them in the styles.scss file, but honestly for fonts, CDN is the way to go.
@robertbaker is there any reason to say that or is this just your opinion?
In my opinion this is a bug and should be fixed, because it was working in the previous version.
It's best practice. highly popular fonts are better just using a <link>
in the html pointed to their CDN, because there's a good chance the browser has it already cached from some other website. It's pretty much guaranteed that Roboto is already in users' cache, since Google uses it everywhere, including chrome. Fonts are big to download and heavy to load in the browser, gotta save time where you can.
It makes sense... I am checking how to handle external resources using sw... but I just checked it is possible. Thx for the comment.
Anyway, the bug is still there and should be fixed
I also experience this issue since upgrading to v. 6.0.0.
Related? #8758
I've got a similar issue: fonts loaded via url() do not get it into the bundle when using AOT compilation
The path to node_modules has to be changed to: node_modules
{ "styles": [ "node_modules/material-design-iconic-font/dist/css/material-design-iconic-font.min.css", "node_modules/roboto-fontface/css/roboto/roboto-fontface.css" ] }
Is this still an issue? I would think that it is fixed in the latest v7 build. If so, can you please close it?
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.
Versions
{ "styles": [ "../node_modules/material-design-iconic-font/dist/css/material-design-iconic-font.min.css", "../node_modules/roboto-fontface/css/roboto/roboto-fontface.css" ] }
Observed behavior
if I access my app using the root URL it is working as expected:
https://myapp.com
when I access my app with a path that is not root, it is not working anymore.
https://myapp.com/section/123456
It can't find the fonts, because it is trying to fetch not from the root.
instead of