{"name":"umi-plugin-routes","version":"1.7.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.4"},"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.7.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-px8RlBz4oJJ9g/8dNcZ32PYtGNmWjjw5BDzXamnbUyNN3Y2gtK73LSmhmHrxfYOdolKM+lKbWyvQDXLknZs0KA==","shasum":"1fccc701fab17330fc207deea41f2fbb3bfb52a5","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.7.0.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\nwsFcBAEBCAAQBQJdu6mYCRA9TVsSAnZWagAA2gMQAJmz0urI0Vtf9TCbrNjA\nBqGFVEiLF36amRCHgpt/bNQI3+jg5wVdJb4awuUYliW291lLGFKnEJ8K+OrP\nJeQ4oySX9uDKnPTzKroPDNjhNIp6rcNLCygsN122dVTzU71yYfMXPj9II2/K\nzwsk/V0NR9jbEdFCclrcqksPmL6ndieAbZhpkHfaGS2UsItr84pUicIRSjmZ\nezNktsGl3R74JfaOndIQ+YDlqbgJ6WhtMpFSSx3SiGhSjEaxH3ONyVTblbIN\n9ralXmDJo8CH0JjjvT8fkkGqj9XQBoyPeXpnwJ7Kr5JPemcRh+dYDLbRJwUT\nOCkDaAQaC7ZKRh7UeBV+HHmLD71xYR0T9T+B4cwi9PbiyxQZay29LCygkIM4\nWA7rzjTU1ljq7RoHi+sluZShzNxSrg98cav13UZaekoh69GN6N2bb1yv8tWV\n+fNvicOmqAxEd4NJFjFUF+NrvvPkbdkD4ft/oW0SMfTZv8qFgT82964Ep/br\nJDWzVk3MMZl5p8/rAiSll3xgGrmfNHTdTiuJrAMUbI2cD+/QJEJKIcAXhp9I\niFnFfkfaF6VhxVIEuoPYxpm9QV7wrJOgEffFCKOMqP3FTLJG+sAFIGlpzd2l\nBXSzgLF8SJsG27eeuSRyfws5jy5hyyskEz9nZLUNWNqr7NF1ZHGnKjRA6kNK\nLEeg\r\n=z0Uu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxxlT52z7MJOqBlIPDFRZS1IufpO39d5g4xCsdoi8pigIhAJRY0Npxje5kQbn5x1tzrMMDp9JKW5zz+q/csJViddI5"}],"size":2147,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.7.0.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.7.0_1572579736398_0.05499690808246993"},"_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":1572579736622,"_cnpm_publish_time":1572579736622,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}