{"name":"umi-plugin-routes","version":"1.0.2","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"},"license":"MIT","description":"## Usage","_id":"umi-plugin-routes@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-YNzcjTAbFqOc45ga5lZ31mITsXJbTbAxQeVpI1uATGzu5NZ2buoOFgvU4q289heo496Q+JgvlZ/p/ICRl5s0MQ==","shasum":"4ab79c742d31e2ffb69e37933a2aabf5baed6582","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.2.tgz","fileCount":6,"unpackedSize":5182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNHw+CRA9TVsSAnZWagAAtTcQAJGrZHGUZuqSdgnFXrss\nL+ldkuY7SUIoPrD99yfVBupR25qYMMwR7KYxm9gi3v9WaeLjUuwAdsKbf/kc\nTzE6ZdqOlJc0KAdKwIcfkIoG2QL/26ZuM183ZA7pvAeb6ap/S8WKOIrcCxl7\nvfghy1B9ZNgpi5tNTugUP4a1/M7mLkQDJ0qITFzMaAcO9auAxOSEETEdZbnP\nNmh0ADSjpqUmv9hCMwpF5erF1ZgmZIvf7Lb1jvB3mtINIlLeVtFf6TCmyd9Q\nABXzogp4M0JnowJWRLtI09hZbkUAZOzqKVDOlOh7LLDJpUKbh6OKrKAOBilH\nVt36JfRuYQ41zAaAeGikBy8EA760x4BH7f2b85DIFjI90PZ3DR+1F2slJxpe\nHjYWeJgeyRpSP2cFcboCgeg/eyRSdEzr22EVblCnQ6pwcFqPijRAlUpBcBjK\nHCBz3fLazPNsKXmNJOKeJFINEGaKQ+BL1QXJ6Wcg/te+S8UvTCo7315443N2\n8ekRIUXZSwB9mLi15Vp2Z1o1deV9Clm/ICueeaNZFdJlbLQ/bpBOvCswSJtT\n5lJq43JNMrPyk6lk5aXM1cazbE3g4pApRyrkZwvsz16nXmuEVDz3qbsbhOll\nAJIpWw+2bCABRaWgzxCuXxARtZ9IsC45u7ysQXNowxalRGYckVU3qBRipY6L\nanlA\r\n=GDQm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhXWA4XM0pMgyPk3klgLgfn3gN8f+fOpa66FX3ciAHMAiEAjXLTwTJQOcKLsF3oNVDr/7NqopsEZFBdR3lXNoky3kk="}],"size":1675,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.2.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.0.2_1546943549533_0.6510734549138393"},"_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":1546943549612,"_cnpm_publish_time":1546943549612,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}