{"name":"umi-plugin-routes","version":"1.8.8","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.13"},"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.8","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-MLD4WVy1RjCyAuM/3i6dEgooTa3qf+5goL41jOVaofzSF3Z2fabnXbyKbjBIQ5F8lXUsTdXKJjhK5SpWA0IkIg==","shasum":"eeb8e2bf75f9b14f9a4b23fd1c25409fb682b1a0","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.8.tgz","fileCount":7,"unpackedSize":6941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaiSVCRA9TVsSAnZWagAAogUP/3T9Hlqh4vprV5oq8prG\nGLCgjAQXbMFECVg4MS2euqY6Jxf1bWdhm/UFWqm5ZsE9EOaRSJv1B1mydpED\nsUtLjAEeEd1pXtNK31Zpm+BKJ39M3V/aSdFaPbN6cjhrrpdkkp8SISoiPUah\nzy9/MMyih8M2Q8lUL5dMLHrtRnc4DIkUislJmme+QyzK+VYNnM/+8ma2ayMr\nW6Jq+PY0qfvvGXEJorGgdqCqokZWyrwht4YNYvslwG7kVUzCvMZJkFAcqXKs\nb4w3N3HYAeA1+ZFCntxIR1aU8atgl6OqmQHReiBTMNOBcdmasU4AQXAUOl6L\nCzozbeYIi0rQ69ITl5TlwjUR3MhH6ZllKz2tLw6hNhsam49reJWalWMDV+r4\n1eiGncSUcINGLyXW7nF7nJ0r8Fk6zpNe/uoNUtZklISpFCe3y1qPuDuXGaa+\nb6JznzXax8NmRvVwt9VIMpKCc6OIGhilWR9T363Yo0qf9hZ9s4ws0ejNnAO/\nNmxX7JvvotQ3q9sgiYeOtTBC9lqDtDiDXewokqqlfy0CkHcjrWtEkQHGgmJN\nH75penbT1Ji2AwfX6adwaZLfiyZ+i6/1fKMsdoaMizjTR77Fs1bPbsV1lmTT\nLQd2cxGD57/+SyFMsFQGiGWPIimDM6Xi6tZhomp0T/FvUgqrTWvQjDjAr55H\n0PJT\r\n=wJYq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA357VDE5R4OZoeYgpxyTY7dsAP6b8RpYWX17eOYXJmSAiBfpSkNSSOQjQqkChnuM1YAm7ly3c8oACOKDw+pu9nhSg=="}],"size":2139,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.8.tgz"},"maintainers":[{"email":"sorrycc@gmail.com","name":"sorrycc"},{"email":"45808948@qq.com","name":"ycjcl868"},{"email":"yutingzhao1991@sina.com","name":"yutingzhao1991"}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.8.8_1584014484614_0.05638370743766741"},"_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":1584014484714,"_cnpm_publish_time":1584014484714,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}