{"_id":"umi-url-pnp-loader","_rev":"1-f5be7c0e004c369940394686ee9d26bb","name":"umi-url-pnp-loader","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.2":{"name":"umi-url-pnp-loader","version":"1.1.2","description":"A loader for webpack which transforms files into base64 URIs","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/url-loader.git"},"author":{"name":"Tobias Koppers @sokra"},"homepage":"https://github.com/webpack-contrib/url-loader","bugs":{"url":"https://github.com/webpack-contrib/url-loader/issues"},"bin":"","main":"dist/cjs.js","engines":{"node":">= 6.9.0"},"scripts":{"start":"npm run build -- -w","build":"cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files","clean":"del-cli dist","commitlint":"commitlint","commitmsg":"commitlint -e $GIT_PARAMS","lint":"eslint --cache src test","ci:lint:commits":"commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}","lint-staged":"lint-staged","prebuild":"npm run clean","prepublish":"npm run build","release":"standard-version","release:ci":"conventional-github-releaser -p angular","release:validate":"commitlint --from=$(git describe --tags --abbrev=0) --to=$(git rev-parse HEAD)","security":"nsp check","test":"jest","test:watch":"jest --watch","test:coverage":"jest --collectCoverageFrom='src/**/*.js' --coverage","ci:lint":"npm run lint && npm run security","ci:test":"npm run test -- --runInBand","ci:coverage":"npm run test:coverage -- --runInBand","defaults":"webpack-defaults"},"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0"},"dependencies":{"file-loader":"^1.1.6","loader-utils":"^1.1.0","mime":"^2.0.3","schema-utils":"^1.0.0"},"devDependencies":{"@commitlint/cli":"^5.2.5","@commitlint/config-angular":"^5.1.1","@commitlint/config-conventional":"^7.0.1","@webpack-contrib/defaults":"^2.4.0","@webpack-contrib/eslint-config-webpack":"^2.0.2","@webpack-contrib/test-utils":"^0.1.2","babel-cli":"^6.26.0","babel-jest":"^22.0.3","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","conventional-github-releaser":"^2.0.0","cross-env":"^5.1.1","del":"^3.0.0","del-cli":"^1.1.0","eslint":"^4.13.1","eslint-plugin-import":"^2.8.0","eslint-plugin-prettier":"^2.4.0","husky":"^0.14.3","jest":"^22.0.3","jest-serializer-path":"^0.1.15","lint-staged":"^6.0.0","memory-fs":"^0.4.1","nsp":"^3.1.0","pre-commit":"^1.2.2","prettier":"^1.9.2","standard-version":"^4.2.0","webpack":"^4.0.0"},"keywords":["webpack"],"jest":{"snapshotSerializers":["jest-serializer-path"],"testEnvironment":"node"},"pre-commit":"lint-staged","lint-staged":{"*.js":["eslint --fix","git add"]},"gitHead":"d2779acf3a40729631fb876bd8c0b9ddf14fe41c","_id":"umi-url-pnp-loader@1.1.2","_npmVersion":"6.4.0","_nodeVersion":"10.6.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-wVZ20srrZB9syPe192rlNMqtIkCWO+pjfFGt7PzEMo3ZoUi1Vu5U6TClaL9iroQ5ghD7waQLvGykGp4cueyI4Q==","shasum":"a4ae66eef2410245d5bb12faf0061e288a166ce3","tarball":"https://registry.npmjs.org/umi-url-pnp-loader/-/umi-url-pnp-loader-1.1.2.tgz","fileCount":8,"unpackedSize":16712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvycwCRA9TVsSAnZWagAA2joQAJWZ6yiCUKlERY7uzzu6\nKyW9X5WVwjI9fJMwyUVelIe6XrVmEQWb4jbddC2PPRu+6ob0iX6K7RsHY+Ap\n+t+lYCz2dVB1GJGqMpNmMqXhSH51vW3KMf8nXVjMmaH3yxsEPsqOR+9E4yck\nHy/54EqcSCiaFJ6WJp99jygM1VMuhoPfgE9PTS0bzyipZ+e88CWRpsh5ylCg\ndKWua9Usoc7+KVsewxV9STsS5FKzmoDPlHfvzt5Lnctp9UvG8LhDZuPZCZgZ\na179qyteCBispO2+1RSM3bBMgC7BJrPTh9OsXXotIAfsrEtCa+idNZ0uiLV+\nzIHzOTWtgOHHGz6fu7jE0Jl5/3mnVcQwdICVqbq1NVNwRIuBrpubIIVzzYCo\nA/WlT+kLF8GbpLGLFWgofdTfgnKe13c+eP5kMf00+dLISGEsrTvgQ42XJCcr\nB/VO4BiSAA4S7qjTLD6+Vp+E5oNj98/5gENRCNAsFBParUq8laYTyd1btK/g\nJtMlMEJ7qv6wv/O8XuYOlKvO5HwPfOx1qWnyxL96ugdi/Ot/DBgPhI082Piu\nbg33eQZRsJnT6XxCl0vAXvoivpAAaTHTWgD9D20HwSv3QXAOtJvVUTj/HR2U\nCILb4tHLXBx23GNVsDGsCZ8rIHMxEsZLUj7YeLyR6JxnrR379vUk/9ix4n7o\n54ec\r\n=U/H/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBx7gHTw2yX+iIWeIKDzXOtz36f0oysXwxl3skLablVJAiEA+TRGWP3hB/vyKMsZtknVQ5e4FNwQj+37gAlGGEMtENM="}]},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-url-pnp-loader_1.1.2_1539254063517_0.8274997922618532"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-11T10:34:23.516Z","1.1.2":"2018-10-11T10:34:23.658Z","modified":"2022-05-22T17:36:30.953Z"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"description":"A loader for webpack which transforms files into base64 URIs","homepage":"https://github.com/webpack-contrib/url-loader","keywords":["webpack"],"repository":{"type":"git","url":"git+https://github.com/webpack-contrib/url-loader.git"},"author":{"name":"Tobias Koppers @sokra"},"bugs":{"url":"https://github.com/webpack-contrib/url-loader/issues"},"license":"MIT","readme":"<div align=\"center\">\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\">\n  </a>\n</div>\n\n[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![deps][deps]][deps-url]\n[![tests][tests]][tests-url]\n[![chat][chat]][chat-url]\n[![size][size]][size-url]\n\n# url-loader\n\nA loader for webpack which transforms files into base64 URIs.\n\n## Requirements\n\nThis module requires a minimum of Node v6.9.0 and Webpack v4.0.0.\n\n## Getting Started\n\nTo begin, you'll need to install `url-loader`:\n\n```console\n$ npm install url-loader --save-dev\n```\n\n`url-loader` works like\n[`file-loader`](https://github.com/webpack-contrib/file-loader), but can return\na DataURL if the file is smaller than a byte limit.\n\n\n```js\nimport img from './image.png'\n```\n\n```js\n// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.(png|jpg|gif)$/i,\n        use: [\n          {\n            loader: 'url-loader',\n            options: {\n              limit: 8192\n            }\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n### `fallback`\n\nType: `String`\nDefault: `'file-loader'`\n\nSpecifies an alternative loader to use when a target file's size exceeds the\nlimit set in the `limit` option.\n\n```js\n// webpack.config.js\n{\n  loader: 'url-loader',\n  options: {\n    fallback: 'responsive-loader'\n  }\n}\n```\n\nThe fallback loader will receive the same configuration options as url-loader.\n\nFor example, to set the quality option of a responsive-loader above use:\n\n```js\n{\n  loader: 'url-loader',\n  options: {\n    fallback: 'responsive-loader',\n    quality: 85\n  }\n}\n```\n\n### `limit`\n\nType: `Number`\nDefault: `undefined`\n\nA `Number` specifying the maximum size of a file in bytes. If the file is\ngreater than the limit,\n[`file-loader`](https://github.com/webpack-contrib/file-loader) is used by\ndefault and all query parameters are passed to it. Using an alternative to\n`file-loader` is enabled via the `fallback` option.\n\nThe limit can be specified via loader options and defaults to no limit.\n\n```js\n// webpack.config.js\n{\n  loader: 'url-loader',\n  options: {\n    limit: 8192\n  }\n}\n```\n\n### `mimetype`\n\nType: `String`\nDefault: `(file extension)`\n\nSets the MIME type for the file to be transformed. If unspecified the file\nextensions will be used to lookup the MIME type.\n\n```js\n// webpack.config.js\n{\n  loader: 'url-loader',\n  options: {\n    mimetype: 'image/png'\n  }\n}\n```\n\n## Contributing\n\nPlease take a moment to read our contributing guidelines if you haven't yet done so.\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/url-loader.svg\n[npm-url]: https://npmjs.com/package/url-loader\n\n[node]: https://img.shields.io/node/v/url-loader.svg\n[node-url]: https://nodejs.org\n\n[deps]: https://david-dm.org/webpack-contrib/url-loader.svg\n[deps-url]: https://david-dm.org/webpack-contrib/url-loader\n\n[tests]: \thttps://img.shields.io/circleci/project/github/webpack-contrib/url-loader.svg\n[tests-url]: https://circleci.com/gh/webpack-contrib/url-loader\n\n[cover]: https://codecov.io/gh/webpack-contrib/url-loader/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/url-loader\n\n[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg\n[chat-url]: https://gitter.im/webpack/webpack\n\n[size]: https://packagephobia.now.sh/badge?p=url-loader\n[size-url]: https://packagephobia.now.sh/result?p=url-loader\n","readmeFilename":"README.md"}