image-meta-loader
v1.0.3
Published
Import image meta for webpack
Downloads
22
Readme
image-meta-loader
Import image meta from your code (using webpack).
console.log(require('image-meta-loader!./logo.png'))
// { type: 'png', size: { width: 200, height: 200 } }
Install
npm i -D image-meta-loader
// or ..
yarn add -D image-meta-loader
Usage
Just add image-meta-loader!
before your regular require/import expressions.
License
MIT