{"name":"umi-plugin-routes","version":"1.2.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.0"},"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.2.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-SEhJ/k02Jwdq/eBgVfX5TjrZeIzB3Yexd7fgSp9voY0qyOGFE8bwSwpEEGEImleQaXPbgVD4SX+kw2kR0TtNRQ==","shasum":"917d99e44c245a71fef389c1e96996f0eced56b5","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.2.0.tgz","fileCount":8,"unpackedSize":7757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci1FcCRA9TVsSAnZWagAAiK8P/189J1vcGA+vsnTbGSpo\nBpqGNrYDEYEo4J10XlbyR4CkOeG3oRsmY0l+LbcGnIApaKTaEP9VcNii8qz6\nOlaKCWL8ELfD2ul9WFQch1MmphAyPB8+bFoWj/92D8aV2AHgBc0uHySiWWaL\nnSVaCWb5fde//vbWml8HMtLcjcdbzBr9veztGetfr9iv87g/dKGGUVtWCTHG\n9WVYQT0ryluluGX0YLm2EtT1TV9iAc8q5oH9ZqS6rkSuP4rDBSdRfRLTP7uL\nPnkphHqaV+ax4n/i1IH7E+M5YxA7Zp1g0QENPvYpEstVeQUVFxixTveyvP1F\nK84tVtJMNQZY+hcv4mOofuWqossWU38ncvqkTUF0KbtyFX6gSZwKimQXuGNv\n8mr2yUEpULnV+MZ9QtxW2f9xOrFXHmTwoTgy3E3UxEVx1Hr9qWLVVW2leApB\n0DoMotR5eqmvavCsBLT/vYbYKgnomNOpikRvBjJP9MXMPrKXXN2kU6wpZUTU\nPfOlKHlbMsBllYVNeva4YAgFSlgg+SQ5RMr2PAommYbzw78jlhgIU/dVgIZn\nqPKAnMkIAXAdaqoY7anLQkJ9d7ljbRdN1PcW5tRKIFrLlA9Gm4Kh/igrAaz7\nxWNnH/sOdaCgRNChswS0pZW7AuIHIH5ds0F9wcjsdYdy4Hh6u7O4BxRtCIRY\nue5l\r\n=/MNv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+a87cbFKN2GRXW8B5DpvnDBh7/8oXSYkT0V5UQZq+QAIhAJLzhMxzXldOJYXfvg5RUwdbV2TI2lZN+bNAxZdf6H0K"}],"size":2251,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.2.0.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.2.0_1552634203857_0.9137037030496304"},"_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":1552634203957,"_cnpm_publish_time":1552634203957,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}