{"name":"umi-plugin-routes","version":"1.8.4","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.9"},"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.8.4","_nodeVersion":"10.16.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-U1YPjPOFhQaNvJfxwWUERxH/KkCb4M5nDy8/9bFrmyBmR11B2ThXxFEF40liyH7VrTybh2khIEzLF23UhglY3Q==","shasum":"349cf2f0c5f4b59b8096a3fef6b0337c06d430c0","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.4.tgz","fileCount":7,"unpackedSize":6940,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+xnkCRA9TVsSAnZWagAAU0MP/3IfYGmGL65fDmf3x87E\nhV07tz946BQZR+HCaE4RvYt5fU+kAUUOCsz+YaeiKcSCIizY6pDSJ2K3PREV\nQOOfUMzglxq0cAYnm/RivvTiplj9WgelHxmflT+BwsBtsjHf/iBN7xT/Frlp\n9h+VSIuNsn4uSy7fKseAb56iiXJsJY4quhJ44xyNKvJOTQpH4B3bJIs9LKBN\nIfLj7j9OHeim7FemBiFQYyYS7t4bAtsduleXWbPaCJqvgG/U0sM14Jl2gu0Z\nw2l5NWsX9XLUxQ/pECDl2YhKMHHHZ2p7rCZZfDahQ85+fHexKPWczYJtHlsx\nD0tdiD+hAl/zRN+RHsm0xkZZsT3XM/vWtzlFWlWR7bCG6zFp4AHTpKdo8TvZ\nl4Cta1rxsY1jf1vNn/jdtr6U8K06SDjrJTGu2lR0M8Hj6lyRVrBZwUcIRvzZ\njhFqCTuYTvRyL81k0gx83iVkMz4teucON/tacCUUi+DKqLOqaWpNNv1Y3c+X\nIF+3Rn6nbXDqRewOhXnumQCse0AqcUMwolMQ0tCzsmTeDhVejIUKwIAs7P7z\nzE9nD8OcfBbKgZLKck5KTrYjUTT8oe4+yTHqdMbZOGD+cQWw1VTsWmuXTImg\nqpnRtdEG8mcq4OFuCzrrp8/OBNvttuLqe6IqUVnwjVtqds5b1lotP0WVcq8C\nzwRF\r\n=+iml\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsBIReuop8k2mfMi7N5DpngkiUsngevWUrGb6KWijX0AiEAiOj0bpV/RQSAI1oLUhd2O+Lo7uyNtTU2aixUZ7Y86hA="}],"size":2140,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.4.tgz"},"maintainers":[{"email":"sorrycc@gmail.com","name":"sorrycc"},{"email":"45808948@qq.com","name":"ycjcl868"},{"email":"yutingzhao1991@sina.com","name":"yutingzhao1991"}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.8.4_1576737252057_0.05869625079084417"},"_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":1576737252161,"_cnpm_publish_time":1576737252161,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}