{"name":"umi-plugin-routes","version":"1.1.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.2.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.1.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-6spdxZ0G9Bs5+KG2oGicoIZ4HnGRc9luUUe8juxQYTMw2GD1qEOP+OKpQHQIgh1vOlD+DKo01P26hA88SlJd8w==","shasum":"2a3b50a6ceb9d6c2e89c34072ff37fb6b60450bf","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.1.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\nwsFcBAEBCAAQBQJcgL7xCRA9TVsSAnZWagAAkH0P/iFfrTWpvMa0niMeeiVs\n9thzEqOZ8pime0zvbVl8HBypFBzeYfw3U/uufSuqu4GvuMn9dVdd1bIjOd4d\nlIW0uRbL8j3roDeWYfTvoRGzpDe9pqoqw8/cI/ilvL4k2mrIL8qTgDOeL7Oh\n7YniEv/zkxwUToYpGLTfumv+055g/bnMZUogynEew1g3nTyuY/6Pl8HPKeF1\n8zpJkNcTu5BOTLlPso1VsCdW9KNeOQvaZxZKf+GmIPZhOeM1ZmebghzphfGZ\nhReNyWu30t5c6ESbmLTPFaRwzBs+4uEPblNmCaLT2UvlhEUB2VhEVDBzkOfi\nPggFF+ckAyql8E1JeWhQWy8Ol92mMVyK2c/mLthSSrNzigCntAjv8soDw/8Z\n+6NVgmp4sXW+Don4Z+4B9ktt/faGareHsxrZpJtGFYr0f5gvqXIM9/C8e7Du\nX/vIrlDxzVV215Ha4D1+iSuGFCF856r9skh0vTeas0tSZFQUdtCHt+Jkt4CE\nMnPRKG2zEjPbb+WekYI8/4IMNyjXeS4mWtnrJTuHZmq2nz63uvvxgP6pFh2D\nzExBi6CdxAg4F+D+rGZnlbc8a/twl4v3g43agQ3B+QrIb/w1vGDdguxlN/K6\nD3CBzcEqst/F4EeuKuJyOEte1msJb4Oh8sHs9xDVI6RjcnkcGGz6l9ai+tX3\nVZbj\r\n=YMlF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCal9iFDnTGARR+1YZiJpMsKbEAl+QnQ8NeNmj/IfNCAiBFxu/7t8uqHJBb/4dyyiPOPSz+5uuhYpYjV3vCmXNtsw=="}],"size":2250,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.1.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.1.0_1551941360180_0.03131305263930684"},"_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":1551941360338,"_cnpm_publish_time":1551941360338,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}