{"name":"svgo-loader","version":"5.0.0","description":"svgo loader for webpack","main":"index.js","scripts":{"test":"node --test","lint":"prettier --check .","format":"prettier --write ."},"repository":{"type":"git","url":"git+https://github.com/svg/svgo-loader.git"},"keywords":["svgo","webpack"],"author":{"name":"Roman Pominov","email":"rpominov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/svg/svgo-loader/issues"},"homepage":"https://github.com/svg/svgo-loader","devDependencies":{"prettier":"^3.8.1","webpack":"^5.0.0","webpack-cli":"^7.0.2"},"dependencies":{"svgo":"^4.0.1"},"prettier":{"singleQuote":true,"tabWidth":2,"trailingComma":"all"},"_id":"svgo-loader@5.0.0","gitHead":"18fc6809701118c322d4b4c7588f5a9daf730884","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-GBM8PCIHEMBciHi+ZQcNcdeFPacvnboougYPTuKAHSLtOtcqHOJmXNu/lITJl8CtU8PmORUCSK5hKW844GO4dQ==","shasum":"d95bce26adee4dd4149579638119e323da7fd0b6","tarball":"http://registry-npm.ywwl.com/svgo-loader/download/svgo-loader-5.0.0.tgz","fileCount":19,"unpackedSize":34614,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDk1wAkSos8UPVxcXyRn06wlWMcF/DceIJYC/A7ZOfaHAIgOUJIKhh7JU9PYr0KGN4cOEbWpYfGHdVCdHKljiPFLro="}],"size":7936,"noattachment":false,"key":"/svgo-loader/-/svgo-loader-5.0.0.tgz"},"_npmUser":{"name":"pozadi","email":"rpominov@gmail.com"},"directories":{},"maintainers":[{"name":"pozadi","email":"rpominov@gmail.com"},{"name":"trysound","email":"opensource@trysound.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svgo-loader_5.0.0_1774512927272_0.191438415578578"},"_hasShrinkwrap":false,"readme":"# [svgo](https://github.com/svg/svgo) loader for [webpack](https://github.com/webpack/webpack)\n\n## Install\n\n```\n$ npm install svgo-loader --save-dev\n```\n\n... or with Yarn\n\n```\n$ yarn add svgo-loader -D\n```\n\n## Usage\n\n[Documentation: Using loaders](https://webpack.js.org/concepts/loaders/#using-loaders)\n\n```js\nmodule.exports = {\n  ...,\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'asset',\n        loader: 'svgo-loader'\n      }\n    ]\n  }\n}\n```\n\nBy default svgo-loader uses config from `svgo.config.js` similar to svgo cli.\nSee [how to configure svgo](https://github.com/svg/svgo#configuration).\n\nSpecify configFile option to load custom config module:\n\n```js\nmodule.exports = {\n  ...,\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'asset',\n        loader: 'svgo-loader',\n        options: {\n          configFile: './scripts/svgo.config.js'\n        }\n      }\n    ]\n  }\n}\n```\n\nor to disable loading config:\n\n```js\nmodule.exports = {\n  ...,\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'asset',\n        loader: 'svgo-loader',\n        options: {\n          configFile: false\n        }\n      }\n    ]\n  }\n}\n```\n\nYou can also specify options which override loaded from config\n\n```js\nmodule.exports = {\n  ...,\n  module: {\n    rules: [\n      {\n        test: /\\.svg$/,\n        type: 'asset',\n        loader: 'svgo-loader',\n        options: {\n          multipass: true,\n          js2svg: {\n            indent: 2,\n            pretty: true,\n          }\n        }\n      }\n    ]\n  }\n}\n```\n\n## License and Copyright\n\nThis software is released under the terms of the [MIT license](https://github.com/svg/svgo-loader/blob/master/LICENSE).\n","publish_time":1774512927412,"_cnpm_publish_time":1774512927412,"dist-tags":{"latest":"5.0.0"}}