【问题标题】:Grunt Wiredep not injecting Foundation cssGrunt Wiredep 没有注入 Foundation css
【发布时间】:2015-10-16 16:13:45
【问题描述】:

我的 bower_components 通过 bower (bower install foundation) 在我的 bower_components 中有基础。

我的 Gruntfile.js 中也有 grunt-wiredep,如下所示:

    wiredep: {
      dev: {
       src: ['<%= FILE_PATHS.client %>/index.html']
      }
    }

另外,我的 index.html 上有

    <!-- bower:css -->
    <!-- endbower -->

运行 gruntwiredep:dev 后,foundation.js 被注入,但不是foundation.css 或foundation.scss

我是否遗漏了有关wiredep 配置的内容?它似乎拿起了font-awesome.css,但不是为了基础?

这个问题是不是跟最新版的Bootstraphttp://blog.getbootstrap.com/2015/06/15/bootstrap-3-3-5-released/类似

【问题讨论】:

  • 你尝试过覆盖吗?
  • 是的,它确实有效。我应该在发布之前尝试过。谢谢你的帮助! @Sudheer

标签: javascript gruntjs zurb-foundation wiredep


【解决方案1】:

所以,我应该先尝试一下,但与引导程序类似,我需要为基础添加一个覆盖。

    "overrides": {
      "foundation": {
        "main": [
        "css/foundation.css",
        "js/foundation.js"
        ]
      }
    }

感谢 Sudheer 的建议。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-14
    相关资源
    最近更新 更多