简体   繁体   English

Grunt Wiredep没有注入基础CSS

[英]Grunt Wiredep not injecting Foundation css

I have foundation in my bower_components through bower (bower install foundation). 我通过bower(bower安装基础)在我的bower_components中有基础。

I also have grunt-wiredep in my Gruntfile.js as shown below: 我的Gruntfile.js中也有grunt-wiredep,如下所示:

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

Also, I have on my index.html 另外,我有我的index.html

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

After running grunt wiredep:dev, foundation.js is injected, but not foundation.css or foundation.scss 在运行grunt wiredep:dev之后,注入了foundation.js,但没有注入foundation.css或foundation.scss

Am I missing something with wiredep configuration? 我错过了使用wiredep配置的东西吗? It seems to pick up font-awesome.css, but not for foundation? 它似乎拿起了font-awesome.css,但不是基础?

Is this issue similar to the latest version of Bootstrap http://blog.getbootstrap.com/2015/06/15/bootstrap-3-3-5-released/ 此问题是否与最新版本的Bootstrap相似http://blog.getbootstrap.com/2015/06/15/bootstrap-3-3-5-released/

So, I should have tried this first, but similar to bootstrap, I needed to add an override particularly for foundation. 所以,我应该首先尝试这个,但类似于bootstrap,我需要添加一个覆盖特别是基础。

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

Thanks, Sudheer for your suggestion. 谢谢,Sudheer提出你的建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM