DragonsInn / fontgen-loader

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

Error when files array is empty #18

Open tykarol opened 8 years ago

tykarol commented 8 years ago

When files array is empty then throw error in console:

Module build failed: Error: "options.files" is empty. at webfont (...\node_modules\webfonts-generator\src\index.js:49:41) at Object.module.exports (...\node_modules\fontgen-loader\index.js:155:5)

Probably fontgen-loader should check files array and if is empty do not run webfonts-generator.

MeishanGuo commented 8 years ago

i also met this problem