jubalm / grunt-fontello

grunt task for downloading fonts from fontello.com
MIT License
45 stars 25 forks source link

CSS Class Names Don't Match Config #34

Closed alkah3st closed 7 years ago

alkah3st commented 7 years ago

Not sure if this is technically allowed in the way grunt-fontello is set up, but in the config.json, if you change the css name for an icon, the resulting css retains the original name. For example, Fontello might output this:

    {
        "uid": "9dd9e835aebe1060ba7190ad2b2ed951",
        "css": "search-1",
        "code": 59397,
        "src": "fontawesome"
    },

But I change it to:

    {
        "uid": "9dd9e835aebe1060ba7190ad2b2ed951",
        "css": "search",
        "code": 59397,
        "src": "fontawesome"
    },

And the CSS generated still has "search-1." In this case there are no other instances of "search" in the config file. Are we able to change the class names in this way?

alkah3st commented 7 years ago

Actually - n/m: you need to change the icon names on Fontello.com before exporting the config.json. Then the CSS class names will match.