{"name":"umi-plugin-routes","version":"1.4.6","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.15"},"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.6","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-xzbfabN7+pIpvXnpZPM0Sk2GHtXtwtx/ZU1AYJV4LYxyxCgWi/OCJvzbi9OqYhtIURo1/yQ72BNjAP575dEqPg==","shasum":"8d3ffaa41e5343eb461226be00c085d2b9e97087","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.6.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\nwsFcBAEBCAAQBQJdNVm/CRA9TVsSAnZWagAAaf0P/16ElD43LoYLhrJYitga\nTj8zpELb/21UkFnrc1poazKdyPFDaVfOrCr2xQijj+znFNxZZr8s1A4yj0hf\nnhQzPsSqr64HZg03yHLKLls9emBrH5ild/EcKo3szdxpZoCByu+VNUDvExQd\nI7NB0Q7SGhEPzSwoOI3TX1JYhJKdIhLNuk9hlXhIvBHYdWh8umbDiAqorZTW\nGKTb7mnk+e734WmN4StmV3rJ23F9EBedXjsYHIs3dPNXDXbnkQP+lufZK/UQ\nlMde2ITd0fvMikHOXNQWWwtGJ0TNVgmVbseWm946UQOAqfbjQG/n7sHiAOeQ\nI5+luEkb66L0sopB3uj11NlNOkyh8Pf11I1bv/YhG7QXM5eEFpY4/+S+sjVz\njogs6LjMlaSTI0fAgPyjxeTm/E+hAasAgS2dWxiwq4g52C30zNfZGF7wue8+\nY50ee5s9HVQmuXbxV65KGGHc1KQn8h9105PiF/g8YjJy1k+hbojn0ysS73w0\nnSPyuNjNlHMs0UYUVf2JLqdrizl/FVzDSA9dCKkVuVM+wp4Xf96HuvQFRf8G\nulL11zehAQVqGoi2AFfnIMwty9B2k/ifXffdHj1MyKAT2toRSbFASIt9zFhN\nepL0LnQyDnyhZm680yZjycM8k/gHB//OA+jPs3ueiC2KtiUIkxYbBUd0gU0S\ndwxQ\r\n=sQ+A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6IGBaGrpt5Uwfpo8AE3zDZoXEXk1dodf6NnNSVSlLvAiEA9LVdRnUtA240Y0e1KMTYSQ4Tk+1WevlxOLFDu5yHtrQ="}],"size":2098,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.6.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.4.6_1563777470786_0.30491453300535376"},"_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":1563777471090,"_cnpm_publish_time":1563777471090,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}