{"name":"umi-plugin-routes","version":"0.1.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"},"files":["lib","src"],"dependencies":{"is-plain-object":"^2.0.4"},"_id":"umi-plugin-routes@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-+9MmGwCMPHs8/XHamONyD/wyDZ8h9o8065SGTvTC4HsMEtO4Dg+FrXFBHNOtqyhxZCSoBMSMvmMfTeRF9b4vzw==","shasum":"3e238a991d372b3c3d517ae67f637d91327fbe91","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-0.1.1.tgz","fileCount":3,"unpackedSize":4511,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEzT6LpUC63MG/2Nj4tFRSCE7Gve44/pcV8oJu0ge6zAIhAOFGhjau6D/cxFwIhTiToWwd9ashJoFJpClzEJHW4i9k"}],"size":1419,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-0.1.1.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_0.1.1_1521105961851_0.9117059035723734"},"_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":1521105961904,"_cnpm_publish_time":1521105961904,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}