DragonsInn / fontgen-loader

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

hash changes on every build #19

Open iilei opened 8 years ago

iilei commented 8 years ago

I am using the following config:

module.exports = {
  files: [
    'icon/*.svg',
  ],
  fontName: 'epsumicons',
  classPrefix: 'epicn-',
  baseClass: 'epicn',
  fixedWidth: true,
};

on every build ( regardless of prod or dev) I get new hashes for the fonts, even when there are no changes at all.

figalex commented 8 years ago

I'm still having this behaviour, is there a way to prevent it?

Kronuz commented 7 years ago

You simply have to pass options so ttf timestamp is never updated (only ttf needs this):

{
    "ttf": {
        "ts": 0
    }
}