{"name":"umi-plugin-routes","version":"1.4.1","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.10"},"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.4.1","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-Ku7zIM8Yl2YwqM3piTL1iIldYosf3NrTur5w7NCNtYdS0y5MEc9SDgZVnHcXHg0Jg2yf+BpHNf0/12SaAef/eA==","shasum":"89cdf7251a11b6a3bc601fed14b25943d692b4a5","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.1.tgz","fileCount":7,"unpackedSize":6445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdE0DbCRA9TVsSAnZWagAAzI0P/2/R6oPOMgX7rrMJsV1O\nWQRaIqspLXpgjKbOV4vvzt33GidbThloexbilzJoKRJR8HoY/TzvNyOwsw75\ndYxu/QrD5P8pbSfYoqQjgOB5wxABhbA5KF56Oh+9tjmmY9iubhqvD6UJRcpt\ne6rG+8XAJUpXKEMEHmN8aPp9WoYS+94+XLmAfweQhlR2SP5TaMd3KjUsa238\nKhZ9QBeRbN9fbo2K7s28RudknX3zrPvUWs0kevTcAf2E6lBbOaOlemjagpA9\nNXxw1leWm1xg0kTMGzEbOGWzFQQE5xN/pfNffIEsK/sEftRC9UezhZen5Amf\neASHWbyzL6aImKCf4E0rHJkWALJLlVJV+LI1jWpUpUZBoXPj2ITWPEKwTrtK\n+4zziJXTA4UC0sazSESDA5m03uZUw3bIW4sXvEDLYagojIavxGYcsxjH0B3A\nRo01aUDJ/S9eTU/MoclDUYwWwR6YpXK8LkfYn4EPGxJVbGdHq49rie+2RJpD\nmyKESWeFtHnNEzpGKESk52gbpqQOH4K5rWX7Uz8hcx3yFu3gVhsmqqkjXJgr\n15rKzSOhIN9CZSUs29FZzGtEHcqL7jZSc3/LV9XAqEwu4hFT68auJZlSa6kf\nlswDCYIhlHwvfNxfJBpAcfnNepcKQpH4d8FsluuUykGDsVCbQKjA6VYgRR83\n0NI7\r\n=oOrG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8aZEpEQ3sWWsKztD6rxzW5fQkMsuDhnhfrv0BkDrG2QIhAOgjCXMUeLPCEDnNpD5kwb2bdNILfKbtlIFqZ95TxzaD"}],"size":2097,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.1.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.4.1_1561542875351_0.36084230562128683"},"_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":1561542875495,"_cnpm_publish_time":1561542875495,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}