Mes*_*iry 6 twitter-bootstrap meteor meteorite twitter-bootstrap-3
我使用Meteor Framwork(PREVIEW 0.7.1.2),我已经使用mrt安装了bootstrap-3,一切正常,但是从chrome iam的控制台接收到这个警告:
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".
Run Code Online (Sandbox Code Playgroud)
特别是在为控制台开发时非常烦人,
有没有人解决这个问题?谢谢
您的字体需要从Meteor应用程序中的公用文件夹提供.为此,您可以在公用文件夹中创建符号链接,以便在引导程序安装中找到字体.
编辑: 我下载了您正在使用的软件包并检查了字体文件夹的路径,使用下面的代码创建字体的符号链接. 请注意,这必须在项目的公共目录中运行.
ln -s ../packages/bootstrap-3/fonts ./
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3822 次 |
| 最近记录: |