{"name":"umi-plugin-routes","version":"1.4.0","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.9"},"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.4.0","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-UyWXcui9cVU2FHygam5LoKWEMJJ0UsQnyRmzKEkESPal/eqh7LR0P6zBvQLKe6xqUGZbcoD9MHTWxaqvkF6txg==","shasum":"a588e2851a650f10b938a97188e8938322b62d72","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.0.tgz","fileCount":7,"unpackedSize":6444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCvhVCRA9TVsSAnZWagAAY5YQAJdiNWYV6x26V9ws7lk+\nlm9bNMMl0a6+NvBG2/OHYvJSqFQdFMbYzlKaAFQn58cMEWPe+BEbFxTFrs2b\neQ3pODD4r1pdIaEymiW74YZtsr5kvccYHkFXmQgPxEM7eSmS7d9fui2C5myk\n4TSkzUz+3yMuLbkRXXzBu+TkAu/0tNgnqlnNnuXlfQ5F3IM/FJcXO78A0d03\n5chnbrb5GcT8yaKneOlflV4xHkWz0jZWPEiOiuFLMdW0tsM7dw4pl4cvHmS7\npBj0NAHRY1qDtEkem51PVbi88Xauj8YCp5HzC3jAb1DkTv9Hm0cZA5Z+yt8K\nJYftLz8z4Rjg0H3zNB8hxp+a4a1dS1+vcFhihkXN7ium5sZz1aXrUX1xYqwf\n7pAxck3jZcwCBY0VkhVlZ2LF0brfMdUfthH5154Xqc3f4fabNL0SdeerxTfQ\nIJfxbd90VbDjg/eQNHDredorSq91aph8Mu1U3zArPuvntXEWkeeowuv32lZK\nCTtHm6CtyTNBmIBRxVSTZY1jkBTwOJWRXyW5uL/hDey+y+Wd69VXdGSLe559\nuIau52cqrFXgfEwd6V8FhNeHURLgbguooXZfBTpXA8EkhlQNOszbJPvH3oob\nOWIA6JEFt67WqZfZAa0bv3O8T52A5YdYn0nkPZ9tB6g+vjKnrMAMsEiTr4oC\na2pm\r\n=8zdJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUrGVhfJSFRITJP0+QYmmW3z7LWcG91QfH0oCNy9uilAIgDjEePmwtorGMgZA/5fgTbjJCm7XhL0UudZMX2fXGNmA="}],"size":2095,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.0.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.4.0_1561000021176_0.9859999226419089"},"_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":1561000021339,"_cnpm_publish_time":1561000021339,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}