Foundation 5 build isn't complete

匆匆过客 提交于 2019-12-17 17:07:56

问题


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.


回答1:


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:

  • https://github.com/zurb/foundation/issues/5636
  • https://github.com/sass/sass/issues/1422


来源:https://stackoverflow.com/questions/25673067/foundation-5-build-isnt-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!