【问题标题】:Problems including foundation with grunt-contrib-compass包括 grunt-contrib-compass 基础在内的问题
【发布时间】:2014-01-24 16:30:02
【问题描述】:

我试图让基础与grunt-contrib-compass 合作,但无济于事。我正在使用angular-fullstack yo 生成器。选项直接注入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.

foundation 已安装gem install zurb-foundation

【问题讨论】:

    标签: javascript ruby sass gruntjs zurb-foundation


    【解决方案1】:

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

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

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

    @import "foundation";
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-08
      • 1970-01-01
      • 2016-04-08
      • 2014-05-23
      • 2014-11-06
      • 1970-01-01
      相关资源
      最近更新 更多