{"name":"umi-plugin-routes","version":"1.3.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.7"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/umi.git","directory":"packages/umi-plugin-routes"},"authors":["chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"],"license":"MIT","description":"routes modification plugin for umi.","bugs":{"url":"https://github.com/umijs/umi/issues"},"homepage":"https://github.com/umijs/umi#readme","_id":"umi-plugin-routes@1.3.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-6ereCeRNYBU9xNgSsQ0EkdytRNSWNAIUWfK1QHXm/GF+Xdvj2ZfhQ9T/+TLC06PzmTG69o6PhDO5kACJlP8QxQ==","shasum":"624925e84e8dfc98bd20aa415fe20c634bc89796","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.3.0.tgz","fileCount":7,"unpackedSize":6453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9NtyCRA9TVsSAnZWagAA1EgP/3Wrcg1Y7BKvHbJmHCI0\nB//NazgXQg+bU//goFryCHvwxLs6lxkv2FBMi5fAAFwKZFpqf9FewRIz+BzK\np/+d5P9DaJF7qe1bPzdaqyfYcPa9y67Yp90tUD7IzTRHm7SoEdbG78P8YtzE\nBhddENSOOp5CnE25XAL+zghxbND/LE1I78ihzkwIg9QzhOS7nduawQVqmzyF\npfAahp/L9k7PgoekGvVj31Z0MrC/nDRsy7HAaCJD87BdDQ2yU1hAU/AJmQHR\nALb4jF0JijS8snUu7t5f/fHxvKG3U5q7AVOpgdwJMnlpx8IB5jzesqF2NEUS\nHOHuwtoPKFeA8yuTdAWkS/pv5WONKb64Rh1BnPbXl+MROoLmWPu2tz3ki7cU\nXXju5iBIA4+4oyUGOT7jDVVphfX5hcKM2ZTMzl/Po4HmehFf20CQZIZJTDH1\nW/cscaKGFVebJ+4ps1OEYf0CPp9a8O5ahwKlHhCIpPmksTGI6H5VPmJYAWLA\njcerPblRTAmwlEu1DWyWoxwSjPrJu4UAqC1KwvKHiHcapO4/Eid7HsqjN6G+\nT5vPogo/xdEwv8VHxUFECwyhn9D/ggSU12v8tS6AyPcJqMLHuXy+zYiBfYqL\nAiEKFGQxwHnjOp3GIGewnWCxCvsbQnxJ3LmkmT4XX8QTcznCRbDrWRleMhNG\nJSQs\r\n=hhIM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9xY6UrfFVttnJzPFb/5lOA+S7/wb6h9froWcWRuXqewIhAI7qnSoLFUGHv+CL0TRLwkv4qUbFHqi7TsoKpM6RP91H"}],"size":2095,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.3.0.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.3.0_1559550834077_0.5542671904656613"},"_hasShrinkwrap":false,"readme":"# umi-plugin-routes\n\nroutes modification plugin for umi.\n\n---\n\nSuggest to use together with umi-plugin-react, see our website [umi-plugin-react](https://umijs.org/plugin/umi-plugin-react.html) for more.\n\n---\n\n## Usage\n\nInstall via yarn or npm.\n\n```bash\n$ yarn add umi-plugin-routes\n```\n\nConfigure it in the `.umirc.js`.\n\n```js\nexport default {\n  plugins: [['umi-plugin-routes', option]],\n};\n```\n\n## Option\n\n### option.exclude\n\ntype: `Array(RegExp|Function)`\n\ne.g.\n\n```js\n{\n  exclude: [\n    // exclude all the `models` directory\n    /models\\//,\n    // exclude ./pages/a.js\n    (route) { return route.component === './pages/a.js' },\n  ],\n}\n```\n\n### option.update\n\ntype: `Function`\n\ne.g.\n\n```\n{\n  update(routes) {\n    return [\n      { path: '/foo', component: './bar.js' },\n      ...routes,\n    ];\n  }\n}\n```\n","publish_time":1559550834260,"_cnpm_publish_time":1559550834260,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}