{"name":"svgo-loader","version":"1.1.1","description":"svgo loader for webpack","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/pozadi/svgo-loader.git"},"keywords":["svgo","webpack"],"author":{"name":"Roman Pominov","email":"rpominov@gmail.com","url":"http://pozadi.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/pozadi/svgo-loader/issues"},"homepage":"https://github.com/pozadi/svgo-loader","devDependencies":{"file-loader":"^0.8.1","webpack":"^1.4.13"},"peerDependencies":{"svgo":">=0.4.0"},"dependencies":{"loader-utils":"^0.2.5"},"gitHead":"4d7c8ccd7c557b53c86112d3085713877f0c91df","_id":"svgo-loader@1.1.1","_shasum":"4ab70f13898b38d8d80c97f81ec5df15ddf182f2","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"pozadi","email":"rpominov@gmail.com"},"maintainers":[{"name":"pozadi","email":"rpominov@gmail.com"}],"dist":{"shasum":"4ab70f13898b38d8d80c97f81ec5df15ddf182f2","tarball":"http://registry-npm.ywwl.com/svgo-loader/download/svgo-loader-1.1.1.tgz","integrity":"sha512-IB7mMkmRt00axTG7qbQVhuwKHNLJcPsaxeWCwr5stBOGq5kCVFd3KlpQgUlXfH6MRA0mjOk/Y3KAcIEKUWRuew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5QW3HByopCV0HLKaHmT1EVp+Z7NK96JI7S4epg4/RfAiBPrAWty2sE4S60qYoVg4rvmhDM1/iGyUQht0qOZG6L6w=="}],"size":4756,"noattachment":false,"key":"/svgo-loader/-/svgo-loader-1.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/svgo-loader-1.1.1.tgz_1476351515580_0.8584328438155353"},"directories":{},"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":1476351516492,"_cnpm_publish_time":1476351516492,"dist-tags":{"latest":"5.0.0"}}