{"name":"umi-plugin-routes","version":"1.4.4","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.13"},"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.4.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-mw7MvyT1w2KDFtzSf/lmHIEnq2FOiCybqpiPcXKIuT2LFJ+Un/OQtjcAmh3gbqwNY97vYtmy42PRWPahKfE0qw==","shasum":"be15bbf24c8bd1afd14ebce5701d0cb882225180","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.4.tgz","fileCount":7,"unpackedSize":6445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJuAFCRA9TVsSAnZWagAASQoQAJBC8yU8yoW62VlFE5cA\nHqSAvSO4Lv0XOQIRqcoxYO6H4khdPnP4q38+BsBrT2hmZENfO7g2ZeG4aeIa\nzegoOuV0k40JCSiTa1eHiXrwg3piRVWuciQSJ8nNMEr1qfbLy0hQB8H2jMGs\nv6VCBl6dTqQhvx/LOr3KogjWYWedc+dO5dNha3aMSzdqvlL5MdyoN2NVDGV5\nUNdPQOb5NMkrNAUIEavFLsJWliu4r4jh9MyIV32lp2t6nDQlegx1yN35Q9Gi\nUyw+Z5LNxlp6yOargsQaLjAucgdxj6PQYkoObslrZ5TwgGSMflxoKBake+EL\nRRoXbtjEZFlfjtExKHA+/Blf4RQ4biJgtSi3ThXrBUztegRTVmL8J1NP+uca\nX26QNDddyftVHMgMk4gWsVjwIqdA+/k4CeUwTtjnoZT64PwP6EX+t1tlC6iU\nU0YNvxAKiXAGyHvHmSRxetTEke2e5cdRaqzalC+0lLta2dMARpNhAvi/pGVv\n69EGnU33+DDoUCSiKXSJITXnLEdhyDh4LVkRAAK07Y+xL7R4e16YtxMDFt54\nt63ywMfAUVECedhwYzjwbFQZU4vSWaxc2+Jq7rui6wBIm3QpiadgRkaVdqqX\nduo4M3T7PK2D3mvyLXHsXedIJB/e+g9JLz6MtMb2oGclqwTgQz59XV2yw36H\n1P/W\r\n=8t/S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDR5mrIE/f2k9974GxJYk61uBCLv4Atz8grEQLQ5ty+ygIgfSWmee//H1Uf7+yIZ3AFfDWshDWgLwfPjzLpPOReCZk="}],"size":2098,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.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.4.4_1562828804545_0.8381230892908893"},"_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":1562828804681,"_cnpm_publish_time":1562828804681,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}