{"name":"umi-plugin-routes","version":"1.2.1","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.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.2.1","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-3e0MBky6e8+B4Y5UJEEU5s7sZtXOAPJHfLWSizyUTwvwCBs7BdXS2LH8Wwt2E9H8IYQLff6nD6TI+3LlbfDclA==","shasum":"1d790dadcc575a711f91b29bd0a3360d3fd47c7e","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.2.1.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\nwsFcBAEBCAAQBQJckIloCRA9TVsSAnZWagAAGDIQAINrQOvnRZfbKPPQjEGN\n1CP75eHJpFV9yEb9M4hLVUOLWh7F5ypjUW2OHybayd8oGLl3Pa6phmjvtHEY\nGBu1bfmii5CHz8Lf5t7BMaJrBhkDw8PZWB+AGO+RG5LaYlrEruAOZeU0QOC+\n8Rd/FRHlAmBIsifc7eA4EJ5tX/xxsEMGx8ZvLqenaUnn6naVy8dOErLtwCSu\nHSRpRgfJOj91AaToJ7VyJPN2HhiaTTL8dCzkCBm/wQCuYSz7tWC+yMXVcbYU\n9b/vGg+lJjRyqPh3M0x+eyYTlw0n36Ip45nk/luaz4EVLqMPA2Lltn/H1mvU\nmKdJ76/OzIS+y0wmKVDMGms5opBiQSZSd+GOvNP4YtMW93+5Dq4LIVkU0bGs\nBLpCYjWvL+qJycEKETjPj57uwvmUcxo8z/MR/78sTVGwKBQbK6ep508/t9SU\nJbXVGc6W8NxIkx/n1OxOq2TjHK2CiaZByqFqo2gzmMCeuq97rRTqZ7yjUIVU\nzIit4PmR1x/6hte3Lr8QXclOoYva3M34y/3gFd3n4ihMw4QbZGG7uakufHR2\nZwfUpIT6+1Pzy6+1GKF1wvjRihYixTspdLQtBEy9Jox84VHMHryV1tgOUUmz\no13LxO8x1DRLXMw29iK3XDWQGwDIC7J9siJoQw56eodEUxjnZPkvV/Trk2TP\nLO8A\r\n=7mi/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/lswD/HcUuAwY5lvHh0kFYk/DQq4fj8hHnWIVeyGNgQIhAOM9zpuQsJcmFp8zAiJVXKaJXe6g4rDu3EazKnaEWH5A"}],"size":2250,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.2.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.2.1_1552976232151_0.563187537061488"},"_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":1552976232264,"_cnpm_publish_time":1552976232264,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}