[英]Problems including foundation with grunt-contrib-compass
I have trying to get foundation to work with grunt-contrib-compass
, but to no avail. 我试图为使用
grunt-contrib-compass
奠定基础,但无济于事。 I am using the angular-fullstack
yo generator. 我使用的是
angular-fullstack
哟发电机。 Options are directly injected into the gruntfile
, by passing: 通过以下方式将选项直接注入
gruntfile
:
compass: {
options: {
force: true,
require: 'foundation',
...
I followed http://ericdfields.com/post/installing-compass-frameworks-in-a-yeoman-project and scss: compass, gruntjs and bower install foundation - import path . 我遵循了http://ericdfields.com/post/installing-compass-frameworks-in-a-yeoman-project和scss:指南针,gruntjs和bower安装基础-导入路径 。
This however returns an error: 但是,这将返回错误:
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.
foundation has been installed with gem install zurb-foundation
. 已使用
gem install zurb-foundation
。
You will need to add zurb-foundation
instead of foundation
. 您将需要添加
zurb-foundation
而不是foundation
。
compass: {
options: {
force: true,
require: 'zurb-foundation',
...
And within your main.scss you can import using below line. 在main.scss中,您可以使用下面的行导入。
@import "foundation";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.