{"name":"umi-plugin-routes","version":"1.8.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.5"},"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.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-VHE089K2Uc12xrySU3iP6xdtrkmqGPYP41LnZqwoMzWUqLiRbjfVabSEKaD/Xzuh3US3w9tgs4Nw2T6e+NlzXg==","shasum":"df4990dd73c8e44a51135c5ef87ed49fc476839a","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.0.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\nwsFcBAEBCAAQBQJd0WxZCRA9TVsSAnZWagAAzbQP/32fzzJMu5i+xbaJrK1c\nGCSyJ+Ed9rEOI9N1DXyCEbL1Ojtfag/Fugyu6z27lPYV+eGMx/iUfJKAykeu\nU9vlA8Rbn7iXFN7VRV7MRyXuLCcuL0VIWuun9HOOqx09z0NGFkvDeG01c/zD\nbcWGHN9qB2wz6pfRfApIsrxlBWA55vVL1KN+8W9U8GjeVPzmjrRwqParupik\n8PhYmbVtMOPtoKXkvF8Gd6NMCYnCm11079aSpYrbtDcVSFH019ztNYWmQFE5\nJ8Z/QdWpFmwg2xFsarJvsXHhO99FbIdaBqIUFLP7p/NF6QeoDtiq9TNHmbSl\n4zS7e4CcmIG+p7hvsARL2OUUl+8tWkcerzkKuJj/JoJJQc9wUM6sgRsJqNzF\nA1LVDvx0byzZ+hKB81ZKY1crhyEGz/IL5yFBOFnOREYJEmm3grnjQ/Ub5XSP\nKNlttbk2W23RmQyEqosy7KlYXpEStcZnjgPMhYDD2vvfAUnYFjf1mHNl5liH\nM8iyQfSaELgf/M61AoumP/ZpWcKQ1XwIkGPS8XsS/WUEtdwCcfdz0i5eMvbU\nGkf3BS4Z7kqaFua04Od2MfC87OkpLYItFCj/hB7dJkG8uIiMjxK/iwY46+CK\ntRdbdukdK2VX1wvQRv2D5vX63h7RvCDTcGa5iLYYvXVoklV3y2bY1rgTKgXC\nR57r\r\n=wgRc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBiv5gQw17DggWvqV8HdnVPYNFZqlC1L8hr8Jv/U7lAgIgAQiJBr1UKlR+NrtP8epkN8ttfgakO507YsL1/N/spFw="}],"size":2147,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.0.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.8.0_1574005849432_0.7271270903311817"},"_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":1574005849571,"_cnpm_publish_time":1574005849571,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}