{"name":"umi-plugin-routes","version":"0.1.5","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes"},"homepage":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes","authors":["chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"],"bugs":{"url":"https://github.com/umijs/umi/issues"},"files":["lib","src"],"dependencies":{"is-plain-object":"^2.0.4"},"description":"umi的路由插件","_id":"umi-plugin-routes@0.1.5","_npmVersion":"6.0.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-DYkrVqqeol/UU7XuQUTXQnj8ERFAZblJ/e/Aj3KE2YLOF1r4tqNs8+C9OrY38TdDVTyQhvMbBL2aBYXDGwOS6Q==","shasum":"f4eea4f83d21dc0bc748c466ab5d74fe18ed7c77","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-0.1.5.tgz","fileCount":4,"unpackedSize":5636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEPCaCRA9TVsSAnZWagAAlakP/AhXewPNO835tcxjZ3eX\nMTXLE9FFDPSscYUwz6XHBJrbvDxR8ADI+kMXBD+UWiQbtuP8Rd9xcAiU/vX0\nrkKFsr2LHxtP6/BBahzbhYmHgCnGISvhG69y7/xZou7x4kkhplkC2YdgpDIM\nwRcdF4hwnEZ7F5S0Mm1T3ckGKXdOrv5yZKpNRnhyRpDDWYnW2gKV6hbQllts\nk7jYcA1VyTUzOZKiHvLYSMoEx+xofFZdnlqZN+lV79EdA0zjiTIBqyHPSZgg\nYwrDHSUXZOsJtD10S/jmKsLFJ2fwi34/d82r9/SLAV8JVybONTVm1sHEG17l\nLRRHqXWjPOHJnGOxeIYYpxBkskJFg/crkhcd37pjv1H2i9wky8999zxUruwt\nNH2vCn9w6wRNJpDM17v6H/rMPjUQXlMEsbEbBlRzp21Oy0O+LPudT9ehvMlM\nXTK6Vy7FtxwlBgyhSQxXtsxoQ25RGgGFyVUumVE2f+hertElkMuoFXjx9D6S\nhP0giOLizlJ5/Vsb4Wj4oo8RbzFFmXHk/4o7ADdsO4/EL4UHtqAYERkCw2NT\nunpUqIY3uwveNmoxwtITcVbRsLSS0n7vbvGuCYg4gENwyTWjFP7e66OpsMVz\n6STh7NxnN1Omd3PLpB5qgxGEahXZd4lEGE7xtAcSF1f0RNMD4oT5TiwUU/+e\nJlta\r\n=d56n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMz/XLL5b0SvhNJL9d8mBK3mnuB3wmHQWkWAoVv4Rq8QIgacbNmeNM15WoyNd59qLWtI8r4myEvf/qSbzhYN0AFK0="}],"size":1789,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-0.1.5.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_0.1.5_1527836825623_0.8654739040180979"},"_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":1527836825921,"_cnpm_publish_time":1527836825921,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}