{"name":"umi-plugin-routes","version":"1.4.7","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.16"},"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.7","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-BSIVoXXw2s8NAOjeBkwp9bTO29P/RLaej/dzopXAeatf+pNtRQDXO4PiXY9JPDKDJ7woM2QjTGRqYmi8s4pnjg==","shasum":"4d361f4a58b543d74bd8993c90c93d51e83acb6e","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.7.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\nwsFcBAEBCAAQBQJdTNY1CRA9TVsSAnZWagAAtosP/0sWEc2hXQMgKnIugkC0\nUnZDXDUQ/cZGS7gBpKRl9FV19Kqu5X/WFVIz/xgSM2VE543QGD56kwMwmIfw\nWcdrtd8mLIFgpD2PHseFJn8nBw2eGh1VQFV9tLwE4gVLfKLaa4NDygcWZE60\n7O6qCESzevbVBGxYvqxVvYUd/4ZkiUlTtBQrMDa43CvvnKyd3Q0BDn+Sx8+C\nCcTOo3LyfY/DZ1g8SdcOPZunSwZnDhkvKrc+yLegufX0eNhAqf+LrqA8L6in\nhxVdqMSyQJ5fpV+cm8eMA2lpSub04VrcxaawyHZ4ZDosbS2kK+1YfOFNYLlF\nIAS1DtZdObdrc1fu32Rajm3zKlH1vVvsnKMNUdqyGhllmzkOwOvjS+/Q9MLH\nWWp/HKfJYgZfTYT0HX25WlXOkkBZI4OT8oFWSiuK51sTl1LsNsgPUeu90GM8\nlJHHYqGLhhh+woz3RFkgCJsrzEp9Ulm3BRZpFbvDMmJTn5tiH2JFh3e+5ov/\nr7vXH2Yd6YGby7Bv4aQput28VrnyOTN1PRGDAF6vdethLXR5fo3anZdZlyjp\nXtMJZZ+qadRydECwiC3vIh+l2uy3IpaIW+j6yAQEzURomyT282/v1h7xe6wj\nfHoqH4tOXnOJtYaLd3PunmXz4LCxJIGiGo1K1kJqQGjTU8+DBib7foUTbRs8\n6dZR\r\n=6zsb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpos8W4EEoGWS4YuAxA/y5mkfb7Vu9HbQXxg51/TCEOwIhAOFf2dcAsceoi29LmH9DEWSb2gdqHdGhASINcNQJIAx7"}],"size":2098,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.7.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.7_1565316661002_0.418127781649442"},"_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":1565316661233,"_cnpm_publish_time":1565316661233,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}