{"name":"umi-plugin-routes","version":"1.8.1","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.6"},"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.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-17xxM2WIUvL0dtcuHRtgEykWcyCaM064GNiJouI8ioGVUtAxsdxPs6sy3qCEkMLYzESvRjjO4U6fReaWrUUp3g==","shasum":"843b67f5331b6305e060ca12165ca24ccb52e242","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.1.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\nwsFcBAEBCAAQBQJd0k8MCRA9TVsSAnZWagAA0iEQAJo80caS6DGckJUzAxfA\nVVqp1W9BEPqXCaUM/jwIIFmA0oeOQLc47hi7BeeafBXVX/PtWM1lX4uxD5tH\nkBO+a1BqCoUQXokgxk3DDrQx8R+4TVNssRN64XN0LPkg7pVy170s+nKBF+m+\niw71i9BSsiq8prGm9g/VnmUJ5umUYDrEHqEoiFGIAiBopzdm/gqP868Jzjoj\n3Jv/ujQFxa2am5/jnYn7BUxTmOyfSOxbOjyTnUod4XYK/N1Dg2o9cfx81uoE\nf0cSix1HnQ7E1UYeI+XxDyvp1WCPKZXEvYIn3eI/KOITsr0KxV3Gq2LMnYlf\n5XdM4z+uPw6VSl2BdegeMOQIuVZlPJwZq0EqOfBNrTeRCGHP8gt5BhKTl7ko\nKTVrpD9pEw79lGC0cwHPOJvX5AIt+9msG9eGBK07ZgaAvXWkimtzdfHspxbt\nLLQZyJdEJVCfU/RI7ME7JXIosgne/uwFhnKmIJ7e9NApquEexquc8HUOjz3m\nZXk8Nb8Hti/8ySy5lQrq86XmJDsW2DaMy/7CV64V2VjKBsQVShjEq9ilv6kJ\nZgiXr2uSERLi+JW9l9hQvRn+ivrlP2mq7Rcmqa+wiOCE6/3XG9XbDg1/OS6S\nRVPL7Tc4Ijku2MWZMjz5+gW4gEqu8Knq0EAqJYrTfvCs1yLK6ekNOLGjsQqx\nUBQN\r\n=GZ5d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF7DLy+vNQpdtHk+JoJpOxs/2Q8sbvg7mqvWX6xvI2EGAiBqFNmEkENUSM4A3ppcJG1D9edpzTZ3eL81U5SX+kHt3g=="}],"size":2148,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.1.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.8.1_1574063884107_0.6367487943744741"},"_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":1574063884266,"_cnpm_publish_time":1574063884266,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}