@superherocheesecake/loaders-image-xhr-loader
v2.0.1
Published
Use as a loader for @superherocheesecake/loader.
Downloads
2
Maintainers
Keywords
Readme
image XHR loader
Use as a loader for @superherocheesecake/loader.
Usage
Set a image URL to the source, returns Image instance.
Example
import { loader } from '@superherocheescake/loader';
import ImageXHRLoader from '@superherocheescake/loaders-image-xhr-loader';
loader.use([
...
{test: /\.(jpg)$/, loader: ImageXHRLoader},
...
]);
loader.queue([
{id: 'image', source: 'file.jpg', loader: ImageXHRLoader}
]);