Foundation 5构建不完整 [英] Foundation 5 build isn't complete

查看:142
本文介绍了Foundation 5构建不完整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里把我的头扔在墙上,并会感谢一些帮助。



最近,当我创建一个基础项目(或任何现有项目)时,我将导入所有的基础:

  @importsettings; 
@importfoundation;

但是,当我用指南针编译scss时,它不会导入所有的基础。我最终得到:

  ../ bower_components / foundation / scss / foundation / components / _visibility.scss * / 
../bower_components/foundation/scss/foundation/components/_offcanvas.scss * /
../bower_components/foundation/scss/foundation/components/_icon-bar.scss * /



和我的最终app.css中的关联CSS,但没有其他被导入。

解决方案

Sass 3.4.0向 index()函数引入了向后不兼容的更改,Foundation广泛地使用或者不应该生成样式。这已在 Sass更新日志中注明:


$ b $


index()现在返回null而不是false如果在列表中找不到该值。 b

Foundation尚未更新为与3.4兼容,因此您需要在此之前下载到Sass 3.3.x。



另请参阅:




I'm throwing my head against a wall here and would appreciate some help. So..

Lately, when I create a foundation project (or any existing project), I'm importing all of foundation with:

@import "settings";
@import "foundation";

However, when I compile the scss with compass, it will not import all of foundation. I end up with:

../bower_components/foundation/scss/foundation/components/_visibility.scss */
../bower_components/foundation/scss/foundation/components/_offcanvas.scss */
../bower_components/foundation/scss/foundation/components/_icon-bar.scss */

and the associated CSS in my final app.css, but no others are imported.

解决方案

Sass 3.4.0 introduced a backwards incompatible change to the index() function, which Foundation uses extensively to determine whether or not it should be generating styles. This has been noted in the Sass changelog:

index() now returns null rather than false if the value isn't found in the list.

Foundation has not been updated to be compatible with 3.4 yet, so you'll need to drop down to Sass 3.3.x until then.

See also:

这篇关于Foundation 5构建不完整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆