danielgtaylor / eidolon

Generate JSON or JSON Schema from Refract & MSON data structures
MIT License
6 stars 1 forks source link

Use only one "locale" for builds #10

Closed kuba-kubula closed 7 years ago

kuba-kubula commented 8 years ago

Hi Daniel,

eidolon now requires whole faker, which results into much larger builds than are needed. Especially since all locales provided by faker are embedded into the final build.

I'd suggest using approach described in https://github.com/json-schema-faker/json-schema-faker/issues/56

E.g. instead of faker = require('faker') use faker = require('faker/locale/en')

Smaller builds of standalone build-packs. Also a significantly faster webpack build in tools/apps using eidolon (e.g. Apiary with Attributes-Kit)