Gruntjs 基金会不包括SASS GRUNT编译 我试图在最近的WordPress项目中从 Boo.中加入基金会。

Gruntjs 基金会不包括SASS GRUNT编译 我试图在最近的WordPress项目中从 Boo.中加入基金会。,gruntjs,zurb-foundation,bower,grunt-contrib-sass,Gruntjs,Zurb Foundation,Bower,Grunt Contrib Sass,我在下划线.js下搜索主题 在mystyles.scss的底部: @import ‘../scss/foundation'; @include foundation-everything; @import.../../../../../src/foundation sites/assets/foundation.scss” 然后在my/src/foundation sites/assets/foundation.scss中: @import ‘../scss/foundation'; @i

我在
下划线.js下搜索主题

在my
styles.scss的底部:

@import ‘../scss/foundation';

@include foundation-everything;
@import.../../../../../src/foundation sites/assets/foundation.scss”

然后在my
/src/foundation sites/assets/foundation.scss
中:

@import ‘../scss/foundation';

@include foundation-everything;
其中,
。/scss/foundation'是我的
foundation.scss`文件所在的位置

然而,结果编译中仍然没有包含CSS。。只有标题

我已尝试从bower重新安装,我所做的唯一更改是
assets/foundation.scss

即便如此,必须对
bower
install目录中的某些内容进行更改似乎也很奇怪,但是
assets/foundation.scss
指向了错误的文件


我遗漏了什么?

我通过从
scss
文件夹导入
foundation.scss
文件,并在我的
样式中使用
@include-foundation-everything
实现了这一点。scss

您不应该更改bower目录中的任何内容。
src
您将
bower\u组件
更改为什么?如果我不更改任何内容,则会出现错误,
scss
目录无法找到
src
代替了
bower\u组件
。我只导入了
scss
中的
foundation.scss
文件,并将
@foundation的所有内容都包含在自己的文件中,就解决了这个问题。不错的选择。我总是从
bower\u components/foundation sites/scss/
目录导入。从理论上讲,您使用
资产
目录所做的工作应该是有效的,但不确定问题出在哪里。