我试图让基金会与grunt-contrib-compass合作,但无济于事。我使用的是angular-fullstack yo生成器。选项被直接注入到gruntfile中,通过传递:
compass: {
options: {
force: true,
require: 'foundation',
...我跟踪了http://ericdfields.com/post/installing-compass-frameworks-in-a-yeoman-project和scss: compass, gruntjs and bower install foundation - import path。
但是,这将返回一个错误:
Warning: LoadError on line ["36"] of /usr/lib/ruby/1.9.1/rubygems/custom_require.rb: cannot load such file -- foundation
Run with --trace to see the full backtrace Use --force to continue.基金会已随gem install zurb-foundation一起安装。
发布于 2014-01-07 14:23:24
您需要添加zurb-foundation而不是foundation。
compass: {
options: {
force: true,
require: 'zurb-foundation',
...在你的main.scss中,你可以使用下面的代码行来导入。
@import "foundation";https://stackoverflow.com/questions/20964038
复制相似问题