lafeber / world-flags-sprite

A sprite of all the worlds' flags.
http://cheesewiki.com/
Other
593 stars 168 forks source link

How to use 16 pixels version? #33

Closed marcolino closed 8 years ago

marcolino commented 9 years ago

Bower loads flags32.css. What if I need 16px version? And, what if I need both versions (always waiting for a 24 pixels version... :-)

lafeber commented 9 years ago

@marcolino Good question, I don't have that much experience with bower :( You could pass an array as main argument in the bower config file but I don't think this is ideal since it just will just include both css files.

PandiPanda69 commented 8 years ago

I know this question has been put more than a year ago, but it could probably help some beginners with Bower.

You have to override the dependency bower main files since it only loads flags32 by default. So, edit you bower.json so it looks like this:

{
  "name": "myProject",
  "version": "0.0.0",
  "dependencies": {

  },
  "overrides": {
    "world-flags-sprite":  {
      "main": [
        "stylesheets/flags32.css", 
        "stylesheets/flags16.css"
      ]    
    }
  }
}

It would be very great that @lafeber edits his bower.json to avoid overriding this. Just replace

"main": "stylesheets/flags32.css"

by

"main": [ 
    "stylesheets/flags32.css", 
    "stylesheets/flags16.css"
]

Cheers

lafeber commented 8 years ago

Fixed.