{"name":"umi-plugin-routes","version":"1.6.1","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.1"},"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.6.1","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-7fw8Y9cxMVRR5Gmwt624zfw0tOaq7yTBa9kDYdRB494DBYFC/qVL3/IjrQZFEr5Zw/wCGX7NdNnSK6MpaAov5Q==","shasum":"33a8cb45b15f61686f4687b7ded29cd6fa488554","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.6.1.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\nwsFcBAEBCAAQBQJdnLMvCRA9TVsSAnZWagAAZqMP/0uRiID9y0hgCBQlDc3L\n7zyAVFd5v0ItKLEKOqI/2ZK4hZIOduFl7pu1p0B/TLKxL2heBbzhXjKrvEmT\nRxMMFeCj9pGlBnTKqG4JPASTv4vtfnpu+cs1+jwX8w6eZL7vR/aiYNhZ8bdp\nAWxcWfYPB6puwypYN/TBnCguHtiAN3c1Q9/Bsl+JiIiY+bht99KQ+YDB75DF\nkCRoXKat9NDzI5TnpMLi/9c/Mcrv1GMv2A5L5Bo2tlQj8/zU1HV6ylTB4ilv\nDxr9VgagClpimGKosOxgT880ScvYzKaRJLKDvP6v2CV37ggtLEkiPKPiB8hl\nkpvpd3lsToPw5wjxikitkbgn21aMezW+Rq5WKCXHMhgpXWKQtht23pOesrqt\nH+GFhO2GPA7+WpALViB8Gu73GuSDPLkKMR8RRDGPRzbhXdVCTi4nkVZAbjZM\nj1c2GEtnFqSD3/FiChb7GH9q+SBqx5tIzYugPyoOIww98im1qbWMPGw5gUjg\n4oKNT2sPC6dW1hU33bxOa07KuagugzfdAa6AgKpLl6leqRUYvgnj9PtqjrqO\nwqdb/2oOCxz35K10E8nNCkI5RrKHcG0ExqcHLFvTnEA831Gu3SFQVl5fFgJf\nAD9pQDQbUrUXB+B8901JNq9za0cQuP5QIdFujWZjspt4k+gXxn8C25tptbgf\nV2AZ\r\n=LR5Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDe+pVUPmbmVlY5h9SSgAqzun46dAavjvVEwxKxT3WigQIgQeBnUiazR8Z3OeEu79kqzi3HnOIGaZtAp2BHsmcFOX4="}],"size":2147,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.6.1.tgz"},"maintainers":[{"email":"sorrycc@gmail.com","name":"sorrycc"},{"email":"45808948@qq.com","name":"ycjcl868"},{"email":"yutingzhao1991@sina.com","name":"yutingzhao1991"}],"_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.6.1_1570550575328_0.762840453085736"},"_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":1570550575508,"_cnpm_publish_time":1570550575508,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}