DragonsInn / fontgen-loader

Automated webfont generation from SVG icons. Use with WebPack!
125 stars 42 forks source link

Is the "content" generated each time reliable? #31

Open egucciar opened 8 years ago

egucciar commented 8 years ago

Lets say I want to use the font-icon in another class of my own. I look at the output and see an icon with a certain content then i hard code the content into my custom class. Is this reliable?

goerwin commented 8 years ago

It's reliable if you don't add/remove icons. I noticed that sometimes when i add a new svg icon, the generated css "content" of all icons change.

egucciar commented 8 years ago

Although I might remember this, now that I added the fontgen loader it's trivial to add and remove icons so I won't be able to expect other people on my team won't change something. Man I wish there was a way to make it so that all contents were exposed as a variable, then you could require that from other stylesheets somehow