{"name":"umi-plugin-routes","version":"1.8.2","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.7"},"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.2","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-0Tntqb46aoiZU6U5+FsUTnYnHQd0hN3JO5r5Zyg+PwaQ7WuSxAVwMXeZYTdxuBxxSdOa26UuTcYvmV9sNFEoDg==","shasum":"2cd33b48d86f7c22c40c1ba2c2a8bfd736e061ab","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.2.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\nwsFcBAEBCAAQBQJd05D9CRA9TVsSAnZWagAAE4IP/j3IN++WCxnc5+3OA06s\n/yju9GBlHTFMl7NS0/UElYD3wqBiRYG8PiXdAKgmcyxNT+/8+byiUo4KTkJl\nqmooYSuH/EC3RZwfJIAuW5xypOSCIE9+7ky25rqtwnGnhUf4hJOzYQ7FD/AA\nvuLK5R8xoX5r2XvAO0OYM0jrEOAX2YkuKXRLu+Ih3a3jvxUvnilgf/oxz5ys\nDvHqf98bcvHXtVKhS4ZVt3GL0sWp7Hb7hvLb5pBNA05LtGx6dw+k6AEvyi2b\nAM+Z5/cWr+0V6AcES9uBAYV4x3YovN0n3fybzJu0n9uk+HigDzaRydwYKNsk\n3FB4vGe12PjSVRFtwhkoK5ool9JApcai1CDG0zBD0dIeZ6Y5zdn1Wxz8rgx1\n9PzwgsD+Bw1AXJEf48wYl0CYg2HVONtskdVlQ2szMixf+ajfG5GrWhqaXrW4\nlJGUws6PHwN7k8ldC1eI9Qo7eVF2lIGK11hFl1AmqxpZtsonXentftnfifWG\nzwjx9wHD0nT0fsaNAD+hyzu3ZaxeqNDgkiRawiA3woGDY+XcUd9DxSfNRPdF\ntOpxkqipXnr47aYDeHUEfXxkGeWWzWYEV50RT8CkrWr2+TOLMZh+yANEcRwA\n/cysoHLFZJxF31K4KVFHWSakXni5V91b/+s8HzGRz4FTRkC7ccWjkb67tJjZ\n+NRl\r\n=rofi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBM5I7Bl0lql3j72IEzYpYANyG+wphIL/yLuzmnWISP0AiEA4eVi0HnXcAc1X3Q9xhFLTNV3BIF7xGQmnCdSo9z2s4M="}],"size":2148,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.2.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.8.2_1574146300744_0.552093302082302"},"_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":1574146300881,"_cnpm_publish_time":1574146300881,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}