Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grunt Wiredep not injecting Foundation css

I have foundation in my bower_components through bower (bower install foundation).

I also have grunt-wiredep in my Gruntfile.js as shown below:

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

Also, I have on my index.html

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

After running grunt wiredep:dev, foundation.js is injected, but not foundation.css or foundation.scss

Am I missing something with wiredep configuration? It seems to pick up font-awesome.css, but not for foundation?

Is this issue similar to the latest version of Bootstrap http://blog.getbootstrap.com/2015/06/15/bootstrap-3-3-5-released/

like image 805
kev_panda Avatar asked Feb 20 '26 00:02

kev_panda


1 Answers

So, I should have tried this first, but similar to bootstrap, I needed to add an override particularly for foundation.

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

Thanks, Sudheer for your suggestion.

like image 50
kev_panda Avatar answered Feb 21 '26 13:02

kev_panda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!