{"name":"umi-plugin-routes","version":"0.1.2","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.2","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-NlslTVqkaLjD48X3r0wpr/ygKqRQ4g1Mbifw+uYPf4A0vnD+fmWdVV8H5+wZKeEALtXEr+LXW33y47SbPjaT0w==","shasum":"b9b45a0cac059d25dfc45339f8f5991b9657b55d","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-0.1.2.tgz","fileCount":3,"unpackedSize":4756,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGUYYS2T4xNTFesM/Nyj8iVr9yW0k66UNwkyMf2OMxdcAiAPC/stfWJy7AxNq02JvPw3+LJfSAUjcwHUqAaJdmPqGw=="}],"size":1400,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-0.1.2.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_0.1.2_1521793478675_0.7656117636483728"},"_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":1521793478736,"_cnpm_publish_time":1521793478736,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}