【问题标题】:Bootstrap-sass is outputting calls to font-pathBootstrap-sass 正在输出对 font-path 的调用
【发布时间】:2015-12-09 01:05:21
【问题描述】:

当我在节点上使用gulp-sass 编译以下 scss 时

@import "_bootstrap-sprockets";
@import "_bootstrap";

我在输出中得到了这个

src: url(font-path("bootstrap/glyphicons-halflings-regular.eot"));

但是,font-path 不在 precompiled boostrap

src: url('../fonts/glyphicons-halflings-regular.eot');

为什么我的有font-path?这是一个 sass 函数吗?如果是,为什么不调用它?我如何收到错误以及如何解决此错误?

【问题讨论】:

标签: twitter-bootstrap-3 sass gulp-sass


【解决方案1】:

Sprockets 是 Rails 独有的。只需删除它,一切都应该工作..

//@import "_bootstrap-sprockets";
@import "_bootstrap";

【讨论】:

    猜你喜欢
    • 2013-10-27
    • 1970-01-01
    • 2017-01-03
    • 2010-12-06
    • 2018-04-10
    • 1970-01-01
    • 2018-10-24
    • 2020-09-16
    • 2023-03-21
    相关资源
    最近更新 更多