Load a fallback image if an image errors out.
$ npm install fallback-image
import fallbackImage from 'fallback-image';
let imageEl = document.querySelector('img.horse-image');
fallbackImage(imageEl, './images/fallback-image.png');
Generate a standalone build in dist
(for use with <script>
tags and AMD module loaders):
$ npm run build:standalone
Run tests with tape:
$ npm test
MIT