gpt4 book ai didi

javascript - 问题包括 grunt-contrib-compass 的基础

转载 作者:行者123 更新时间:2023-11-30 17:41:36 24 4
gpt4 key购买 nike

我试图获得与 grunt-contrib-compass 一起工作的基础,但无济于事。我正在使用 angular-fullstack 生成器。选项直接注入(inject) gruntfile,通过:

compass: {
options: {
force: true,
require: 'foundation',
...

我关注了http://ericdfields.com/post/installing-compass-frameworks-in-a-yeoman-projectscss: 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 安装。

最佳答案

您需要添加 zurb-foundation 而不是 foundation

compass: {
options: {
force: true,
require: 'zurb-foundation',
...

在您的 main.scss 中,您可以使用下面的行导入。

@import "foundation";

关于javascript - 问题包括 grunt-contrib-compass 的基础,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20964038/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com