{"name":"umi-plugin-routes","version":"1.0.1","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.1","_npmVersion":"6.4.0","_nodeVersion":"10.6.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-v6ZvecsA86nURRYt02vz829eFYwBzoNYbGI4H6lOpaxSan7eG4opmhrN6K1RrLzxjYHfZPTPmjzAAV/ZgADNpQ==","shasum":"edea744a4814def24e3336d612bbd00b010f351d","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.1.tgz","fileCount":6,"unpackedSize":5041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkOLaCRA9TVsSAnZWagAAIaEP/2tUz/G1Z0gT+O/EnYlH\nAjq0mvsHuGyd5h86YGR6DNbSdvkNUV1W4FdPz8o2u1qODFaOhvd4WYXiIx7J\npyo00ztrDXApn6xhD7rBUHU9a8N8bsZdLDgHfz3HaKiFaZX+mvsaMyapH8Gs\nbCfx4fnU4vm8KmKADssGrOhR+pjLaiDmjvOCUeJnn6wrllhhbT/019/ePhH6\nFBIOce4sHamLqsaX/o2RwVTb6WA5AQUK7pUw4A+1U/c1hJEHRkZJHi5WHD4/\nW+liSyfK2Yv8R8c/wQ4sPYUsZpWpJKwXJNGrVq8a25NSF22etbENjRUdu55j\nbOxT5uWmfDY17ZXA5myat8J0Z9vWILomliR9WQsq8OcN5UoIsrR+SmNCKHlk\nUqV0YiZd1txqjYqKXG6idvb/awB8FPiiByxMIopXL0Tr4yqm3QJWhPnNktBo\nnIvl5P9j1QO6qkLyYmchimM2xdEyL0j4zS2NAuTBRT7/xW7Q0WAhVWIeTYsr\nSuuQs3HntiG3BtQmTZdoUiYqoHSDfYyQTVRDnGlgfuRbkAGDZttgcYzmy5v2\nNp3vs1DMwN1mEEIZhZqx4rC29pSrDoU8UCugSgrmaSKsv9cQx4z6sDMjG2LX\nfRidWNz5pxRy+m5BDbBtLivqm6PLw3ETE/F5dFEGgUYMaaBnTS8IE78d6TTA\nfYym\r\n=wDkH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWHfoMxC1Yxa3DsmEdSEaJc6AQfz+q+WiwAsJOiKa9lwIgPnjCZ8zZQgaJVWSMgfqP0z40ZOt428QlKuy7306qBj4="}],"size":1647,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.1.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.0.1_1536221913338_0.7856434276731055"},"_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":1536221913535,"_cnpm_publish_time":1536221913535,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}