theKashey / holistic-image

Wholesome image management
37 stars 1 forks source link

webpack build to emit errors in sane way #4

Closed maraisr closed 3 years ago

maraisr commented 3 years ago

Be very cool if webpack could break the build if --validate would for instance fail, as in do derived files exist or not. This would be a client-side error emitted in the loader in mode: development and a blatant break-the-build in mode: production.

In the same was a Relay emits the if (__DEV__ && hash === computedHash) { throw new Error(); } during its dev-mode.

theKashey commented 3 years ago

Now it can emit errors or autogenerate missing image ✅ in v1.1.1