{"_id":"sizeof-loader","_rev":"6-144de39b39bc1e95df726a95004f19c6","name":"sizeof-loader","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"sizeof-loader","version":"0.1.0","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","files":["dist"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","travis":"npm run lint && npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"dependencies":{"file-loader":"^0.11.2","image-size":"^0.6.0","loader-utils":"^1.1.0","url-loader":"^0.5.9"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^3.4.2","prettier":"^1.5.2"},"gitHead":"951a44626eabd7ee006b7cb4772419981a8ba2a6","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@0.1.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"integrity":"sha512-RYQv6jdwBvOU0RyMCzHn7PaTHSuOBKpbxqLN/1UwbntXKKPCAM3d/X/3toPVift2HgF0V1xrpSFj5nytnkX/hw==","shasum":"7456aa6d5afc1f15723db4035fd9142e94efbe0c","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNnpw6DOplIkRurD4WWC+CHe1G1dKt+EzT+r+c1/o+5AIhAMjM7IEryRjf8VM7rmyjFrCQRSWrEp4+UpaN1Ufxp3oW"}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader-0.1.0.tgz_1498973432318_0.6016443746630102"},"directories":{}},"0.1.1":{"name":"sizeof-loader","version":"0.1.1","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","files":["dist"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","travis":"npm run lint && npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"keywords":["sizeof","loader","webpack","image-size","image"],"dependencies":{"file-loader":"^0.11.2","image-size":"^0.6.0","loader-utils":"^1.1.0","url-loader":"^0.5.9"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^3.4.2","prettier":"^1.5.2"},"gitHead":"700b8a4d9f73377e36b1ad86449e061b3591fe1a","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"integrity":"sha512-jWtb0wGLpFDtKwl823/IEK69nNukihB+owSWFW5yCOkWiRDao+mrihKZ/Pdke3njj+SS6iGDDINQhR2jsrSuyw==","shasum":"c9118bc9a86b468baf246c2087b68d72bbf68dec","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzg3NH8TT00KRwP8MxBUUcrDZ4udwrxv7fB7PSx7zu+AIgdenTsTcdHp0wAN3Cqyv/E5CRR4+O4Ya0d/hXRySKVu4="}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader-0.1.1.tgz_1503258215458_0.13877880317158997"},"directories":{}},"1.0.0":{"name":"sizeof-loader","version":"1.0.0","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","files":["dist"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","travis":"npm run lint && npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"keywords":["sizeof","loader","webpack","image-size","image"],"dependencies":{"file-loader":"^1.1.3","image-size":"^0.6.0","loader-utils":"^1.1.0","url-loader":"^0.5.9"},"peerDependencies":{"webpack":"^2.0.0 || ^3.0.0"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^8.0.0","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^3.4.2","prettier":"^1.5.2"},"gitHead":"30becaa7fab4254644a0dea96c90f14583689a3c","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"integrity":"sha512-rihYXe8Lcrm6eslairNDBPUu6VfjMQw9/Lggy/Bnc8SXPpFXWtEFqZuHaz/KgzqHeCyD9/dVS7+Kiwa1XpIkGQ==","shasum":"b76452898560bf625edbbbad32ee09cadea5c0d7","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdwGLldYygx43/kI2sH1r5WyKytnPmNDVrZPmM3eG1jAIhAPZucEdUNhj/0TG1Y2B9eohxDlsuPM2Mh6pWeD26vDF7"}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader-1.0.0.tgz_1506811913198_0.1956816150341183"},"directories":{}},"1.1.0":{"name":"sizeof-loader","version":"1.1.0","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","files":["dist"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","travis":"npm run lint && npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"keywords":["sizeof","loader","webpack","image-size","image"],"dependencies":{"file-loader":"^1.1.3","image-size":"^0.6.0","loader-utils":"^1.1.0","url-loader":"^0.6.2"},"peerDependencies":{"webpack":"^2.0.0 || ^3.0.0"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^8.0.0","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^4.0.0","prettier":"^1.5.2"},"gitHead":"e993b9476a4a0387a429525453430e6765554a82","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"integrity":"sha512-16BXGyD8G2mK5gSpfI+kTHcWO1cIM0mI65EAuaqmv51lJz1gjOa4nCMD+48kdEVRsUDwEB3E2ZQ2YhweljJwfQ==","shasum":"311e3e749a541f296cf89350af3d7b7ea8f8c094","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBUbt3yuVezTr7+wcSCAZTptfdIRsz2TeD+LjgPr7YhAiEAzPd1toFUEC6bsZkSgcaDDlo//LLipgbGQfDqAPtVFOk="}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader-1.1.0.tgz_1507364384516_0.15193415875546634"},"directories":{}},"1.1.1":{"name":"sizeof-loader","version":"1.1.1","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","files":["dist"],"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","travis":"npm run lint && npm run test","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"keywords":["sizeof","loader","webpack","image-size","image"],"dependencies":{"file-loader":"^1.1.3","image-size":"^0.6.0","loader-utils":"^1.1.0","url-loader":"^0.6.2"},"peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^8.0.0","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^5.0.0","prettier":"^1.5.2"},"gitHead":"cd637036b155e58e6ff46f03d65d0ad422ce4773","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@1.1.1","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"integrity":"sha512-ftATzURAIL6zZ+zPAM69EpDOmP+NHqY9eXb8g9FJajlLci5jPqRQVtdLhac4h22Bw7kXmvSZoA8/Z2uGfyxgDQ==","shasum":"ed856bb754ff48b7cf1600af1ed382d739d96b67","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-1.1.1.tgz","fileCount":4,"unpackedSize":8074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7aWjCRA9TVsSAnZWagAAxoAP/AoS8iuYQ2nh5z4/JLf5\nSlZ83p5g7sqcfMK1IZz+EuetYy9wFK5BoMRVGTAkRQK1tjAWBfbDwWrf4vMH\nkoqZln+nbkK9C2eaLeZvWWIy3k8CJ8EK+mLObvJ8TVJ7IQU6BveZheZ2G2sX\nNiIG82zoBPsFh9Z1EC/lWbU2DqSO9Bv5f8gLf2OFjsOoaBX5vfbJrm0d3m6h\nYGbIc19FQgF8791zr9FHNk4tE+Tkyzpxydgn9658izs7DJoQS0iPNICsMqdm\nC32WOckKjQiDMFMZkpN9o+rru4qu9pEyUou2xpdH1FYv5GXkMUJqHzNaJqBh\n62tZLuL8xh2sF1UWl/hjbc9DVxWPlkiWgvpa6qx+TE8alKTLQxMKyp6wg+X2\n5Zy4ZjgVKdKFxbvvw4LIAyXTnHwFg9X4yXt1Ns5pft+f9yMpXKpPHuyIQ/2b\n6a6tFQP6qMhlOV/jrMZ3dFCjZs2SzCJG6rhJDumwNjre5H2xIbk2e21diT4D\nVHS+i0wekUJLwEQuy7H4mvVBWzc8NUZ4/izfreUSCxC229AVjm9h+FOuA95u\nb3xNGyf+RUpPzak9LfW/AEZe8XXBq3oLsgGJtrAORXYT6e2jSKamZPAfR1R7\ndh6M/lKYzPxa/ZEkAt7iqMBQa7KPtmgaimgb0Vxij5x38GGzhR+qHJ8qJauT\n5mqn\r\n=UuTV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFBih7KUTLI7au4KBPsJTehrlrJbcwMy1DNOISwEpuUQIhAPAbIY9YhZ7Uaz6pwr3nEJvT2UtM/n/aolifF9mufbQf"}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader_1.1.1_1525523874826_0.4861476392596835"},"_hasShrinkwrap":false},"2.0.0":{"name":"sizeof-loader","version":"2.0.0","description":"Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"license":"MIT","babel":{"presets":[["env",{"targets":{"node":"0.12"}}]]},"scripts":{"pretty":"prettier --write --tab-width 4 'src/**/*.js' 'test/**/*.js'","lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test && npm run build","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js'"},"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"keywords":["sizeof","loader","webpack","image-size","image"],"dependencies":{"file-loader":"^6.0.0","image-size":"^0.8.3","loader-utils":"^2.0.0","url-loader":"^4.1.0"},"peerDependencies":{"webpack":"^2.0.0 || ^3.0.0 || ^4.0.0"},"devDependencies":{"babel-cli":"^6.24.1","babel-eslint":"^8.0.0","babel-preset-env":"^1.5.2","babel-register":"^6.24.1","chai":"^4.0.2","cross-env":"^5.0.1","eslint":"^4.1.1","mocha":"^5.0.0","prettier":"^1.5.2"},"gitHead":"f89f1efedfedd86f6cce351ad379d16a7369c307","bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"homepage":"https://github.com/dashed/sizeof-loader#readme","_id":"sizeof-loader@2.0.0","_nodeVersion":"12.17.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-k+1z/6hHNcQcm/kUgMykOL5SvMrA4x2lY65a5w1KrgxY6YLwQUEaERmFSIUmcfLiZGGWX3867DwR4GFMIrSwow==","shasum":"09c0872d92d322f5b9951f2e5cc9d99b76511bbc","tarball":"https://registry.npmjs.org/sizeof-loader/-/sizeof-loader-2.0.0.tgz","fileCount":4,"unpackedSize":7966,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4rYICRA9TVsSAnZWagAA+DEQAKE1Ny7k6+21J4Cflvmu\n1OHc1Hp1I9GvOnWp2syeS/zYAWoX7QHAMWUcQQP0JUD6lAKUPpwxJooaq5uE\nYw1ApA0/TDWa7Lk03T7I71XQYh2VjqNSsK/5RovHDMgrRjUIPU7NRlguYkod\nh1gFF792GLzJuLf7FTsjRg+Nk5X3iW+0rAJ92j4i8j6oYjbCjauSFEnFdhaj\nN94W7Nq8dDJZ0c1vhsQ+IS+wa7eZxOsu+17WiitfjgWsPGgvdE1ACJcypmDE\ndq1pQeLTO3w9qEb5zM6qdcv+WYyj23rQU8btJHf1W66kA57qRLfYUiKcU/pe\nm0+jIfZKVaY0J8pjJoBnl1n3PjXGv0KDrecpt06yM6Fwrzfhv5gjlNiHu3ox\ntjRAuk6cusXrO9HDG0KJxzq0iigtVPFJtOVPSczIm4AdpNvlmnwBVvD0lGJW\nJB3Okz93Blpten71rpeN9oCurbC5TlHoiGIrHIK1j5XqXIMZBR7kRjOMHWj0\n+zzaO057/RFTUywVXzewstcmPsPkMe/jVHZuOXVgj1RzWuIVHs2nGD4X/D7f\nvqW2qP1qiAoeD4tN9NAcM02BrRGx43+y1MQ1OvRJAT/gdZ7SW8EOpep5l5iD\niHlS+DIGL/F2TEalSTEn7761OEjBeOANX1B3Prfo3oK/c2jKucTFlzZW+Ppm\nfPY4\r\n=UFEx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCubNrvGlbuZL87ex81LX9GnVdSEv9cPXZz6b4URgZTeAIgQxmL0GdgAP6GXeg4EaQsEsmzCIBJPdA5LqlS2qr4PxI="}]},"maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sizeof-loader_2.0.0_1591916039694_0.39177451407290054"},"_hasShrinkwrap":false}},"readme":"sizeof-loader [![Build Status](https://github.com/dashed/sizeof-loader/workflows/Node.js/badge.svg)](https://github.com/dashed/sizeof-loader/actions?workflow=Node.js) [![npm version](https://img.shields.io/npm/v/sizeof-loader.svg?style=flat)](https://www.npmjs.com/package/sizeof-loader)\n==============\n\n> Webpack loader that works like [`url-loader`](https://github.com/webpack-contrib/url-loader) (or [`file-loader`](https://github.com/webpack-contrib/file-loader)) but with extracted information such as image dimensions and file-size.\n\n## Install\n\n```sh\nyarn add --dev sizeof-loader\n# or\nnpm install --save-dev sizeof-loader\n```\n\n## Usage\n\n```js\n// webpack.confg.js\n\n// ...\n\nmodule.exports = {\n    module: {\n        rules: [\n            {\n                test: [/\\.bmp$/, /\\.gif$/, /\\.jpe?g$/, /\\.png$/],\n                use: [\n                    {\n                        loader: \"sizeof-loader\",\n\n                        options: {\n                            // default is false\n                            useFileLoader: false,\n\n                            // any options will be passed to file-loader or url-loader\n                            limit: 10000,\n                            name: \"static/media/[name].[hash:8].[ext]\"\n                        }\n                    }\n                ]\n            }\n        ]\n\n        // ...\n    }\n\n    // ...\n};\n\n```\n\n```js\n// path/to/amazing/app/src/components/logo.js\n\nimport logo_img from \"images/logo.png\";\n\n// logo_img is:\n{\n\n    // Output emitted from either:\n    // - https://github.com/webpack-contrib/file-loader\n    // - https://github.com/webpack-contrib/url-loader\n    src: 'path/to/logo.png',\n\n    // Output emitted by: https://github.com/image-size/image-size\n    width: 400,\n    height: 200,\n    bytes: 12345,\n    type: 'png',\n\n    // useful for console.log\n    toString: function() { /* ... */ }\n}\n```\n\n## Options (webpack)\n\nBy default, `useFileLoader` is `false`.\n\nIf `useFileLoader` is `false`, then `url-loader` is wrapped. Any given options will be passed onto this loader.\n\nHowever, if you pass `useFileLoader: true`, then [`file-loader`](https://github.com/webpack-contrib/file-loader) will be used, and any given options will be passed onto that loader.\n\n## Supported file-types\n\n[`image-size`](https://github.com/image-size/image-size) is used internally.\n\nSee: https://github.com/image-size/image-size#supported-formats\n\n## Use case\n\n```js\n// project_root/src/components/logo.js\n\nimport styled from \"styled-components\";\n\nimport logo_img from \"images/logos/homepage.png\";\nimport { bg_image } from \"styles/mixins\";\n\nconst Logo = styled.div`\n    display: inline-block;\n\n    ${bg_image(logo_img, /* resolution */ 2)};\n`;\n\nexport default Logo;\n```\n\n```js\n// project_root/src/styles/mixins.js\n\nimport { css } from \"styled-components\";\n\nexport const bg_image = (resolved_image, resolution) => {\n    const width = `${resolved_image.width / resolution}px`;\n    const height = `${resolved_image.height / resolution}px`;\n\n    return css`\n\n        background-image: url('${resolved_image.src}');\n        background-repeat: no-repeat;\n        background-position: center;\n        background-size: ${width} ${height};\n\n        height: ${height};\n        width: ${width};\n\n    `;\n};\n```\n\nCredits\n=======\n\nCode is based on: https://github.com/boopathi/image-size-loader but wraps url-loader and file-loader.\n\nDevelopment\n===========\n\n- `node.js` and `npm`. See: https://github.com/creationix/nvm#installation\n- `yarn`. See: https://yarnpkg.com/en/docs/install\n- `npm` dependencies. Run: `yarn install`\n\n## Chores\n\n- Lint: `yarn run lint`\n- Prettier: `yarn run pretty`\n- Test: `yarn run test`\n- Pre-publish: `yarn run prepublish`\n- Build: `yarn run build`\n\nLicense\n=======\n\nMIT.\n","maintainers":[{"name":"dashed","email":"mailforalberto@gmail.com"}],"time":{"modified":"2022-05-18T00:12:15.922Z","created":"2017-07-02T05:30:33.225Z","0.1.0":"2017-07-02T05:30:33.225Z","0.1.1":"2017-08-20T19:43:35.602Z","1.0.0":"2017-09-30T22:51:54.375Z","1.1.0":"2017-10-07T08:19:44.582Z","1.1.1":"2018-05-05T12:37:54.899Z","2.0.0":"2020-06-11T22:53:59.911Z"},"homepage":"https://github.com/dashed/sizeof-loader#readme","repository":{"type":"git","url":"git+https://github.com/dashed/sizeof-loader.git"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"bugs":{"url":"https://github.com/dashed/sizeof-loader/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["sizeof","loader","webpack","image-size","image"]}