{"name":"umi-plugin-routes","version":"1.5.1","main":"./lib/index.js","devDependencies":{"umi-types":"0.4.1"},"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.5.1","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-5/ar991rH8LrlyIHP1vLgBkgUKoW8ya2ShgIp9KNB8agNuC+QOGXbfyh3/xRvj33QeKd3H8thxFXv4Fjvig+jA==","shasum":"c17e0d98e54d8431df28943c54b4467e2a1540d4","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.5.1.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\nwsFcBAEBCAAQBQJdgKbTCRA9TVsSAnZWagAA9qgP/2md7NcSum0eHV19XddY\nGXQX3KDCCtgamngKjpThXAIX47oWHsSmbLBhj4RyONnGAKV6iCsKD9ADK52E\nWSPOB1Bxk0ZzAAjZz1o0KgkP2EGrSlk1jSNSUIHlo6PNP1xV++VPBcgkVEUM\nHHkhaJyb11IQ7lXIZPlKKv0zRceWlb41mfgi8LFus76LyWmgw+PQOaexg9DO\naP0YEo1hnoD8ZQwTUc9ljG1DKIzq6ZxBXxDiJyDKSghnEWXBvaRGfxdLrCM6\nSuJtNKjfrl0IF+gZakO7k9xf/XRGL14CcNmx3Dwbxh8U5nue3eRQzrlO0IRM\nwwKhq+GbzrW7inPyTtowMjXZBHfsIYdSxg7n17fvWP5oFRtvuimwxX1UUGzR\n5CchPmkXzNBZq04JTn01t3K9ZgW0kxNU+hJb/NHi/lHqBH2FVmQtVXehpfep\n0k8QbmSCSNInS/Fv7ryGcH4q40rD1DMk9BcXMUinioekaWME7tSCQvpP/0hl\nx1PuvsbH4LpU+gxiSeKiQmVo0wixMdEyRF/4+lYXe3PXGjd50NSAOf8j8Q/3\nPPQs2b0z/2BXHhSlQQJeRkzWKm2LZNTLsL3pnMT20taod8nWZUBK73ttA8JR\n2YKKojWGZjaVGJee3ygC1OovSJwtDVlPB1nxn1dA+K4PuYh5+FfbMOWBxe7p\nNkvr\r\n=ctSA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKBTTldf8J+/RQsZF2n3iA5Essf1YWrT1a0zFUThDtsAiEAvzChC4lMuVp6M6NVTtV6tKDJSaZTA8b6q78284/qlsI="}],"size":2147,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.5.1.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.5.1_1568712402868_0.7769694657648964"},"_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":1568712403005,"_cnpm_publish_time":1568712403005,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}