Open attack-monkey opened 2 years ago
@cmcWebCode40 I think that the .ttf
font isn't getting packaged by webpack properly here perhaps.
@nick-verida, yes you're right parcel-bundler is not packaging the .ttf fonts styles correctly, I think this issue is related to this one raised here https://github.com/parcel-bundler/parcel/issues/5305.
There is a solution to that issue but that works if we use parcel-bundler
to package our library but that is not the case here, so I would suggest we use other methods to load the google font so it can work well on different javascript applications.
cc @tahpot
@cmcWebCode40 Sorry, I can't add much value here. The solution for now may be to add a README.md entry highlighting this issue with parcel-bundler and the solution.
@attack-monkey Do you have any thoughts on a solution that can allow fonts to be loaded across multiple packaging tools?
Using Parcel as the Bundler for Web Application, I got the following error:
I resolved the error by adding a
.parcelrc
with the following, to get it to build.It now builds but the font is displaying as times new roman and I can the the following errors in the browser console...