The resource is interpreted as a Font, but is transmitted with text like MIME / html: "http: // localhost: 3000 / fonts / glyphicons-halflings-regular.woff"

iam using Meteor Framwork (PREVIEW 0.7.1.2), I installed bootstrap-3 with mrt, everything works fine, however, from the console in chrome iam, I got this warning:

Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.woff" Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.ttf". Resource interpreted as Font but transferred with MIME type text/html: "http://localhost:3000/fonts/glyphicons-halflings-regular.svg". 

which is very annoying especially when developing a console,

Who has a fix for this? Thanks

+6
source share
1 answer

Fonts must be filed from a shared folder in the Meteor app. To do this, you can create a symbolic link inside the shared folder, wherever the fonts are in your bootstrap.

Edit: I downloaded the package you are using and checked the font folder path using the code below to create a symbolic link to the fonts. Note , this must be done in the general project directory.

 ln -s ../packages/bootstrap-3/fonts ./ 
+5
source

All Articles