{"name":"umi-plugin-routes","version":"1.8.6","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.11"},"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.8.6","_nodeVersion":"10.16.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-C162cdL9gzH/n0f/tdCq0l1j3DxRtBu/p1okDFD/hOaN4g+4mAQo2YzawX9yrIHHAPGs5fb+sgBhHE+kD70qyQ==","shasum":"e90cb2d311c1352680856e9b62be2839aacdcac1","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.6.tgz","fileCount":7,"unpackedSize":6941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeDuxkCRA9TVsSAnZWagAA1/4P/15L1xocx5W/R/GfUQQh\no9iNZ0SE6BtCxDGyLabbnz5z39+DSEuafFProeL/DkLToESiBoCW30ZKmLzU\nAthuOLw6XXhmDqfwVYNkimEP2pGSKb+Msq5vZI1+m2mj8Hjri7ZkoLhEBq+h\nhgQtPjEnD7Wd0jtHebxTyc2oVg5hVCs2KS0BELCREkvTZhDV17jcX2V8BvwX\npvbPfwlfi6k+Ka4zOXuz7eQf1nG3xucfe8hUi/W/5XzElw+X77zmKccgTIf+\n+crMt9xfYs1vm0psAc8+NXlGmLXZ5T89s3vyxMz1zA3lSMagb5lrRpsUHecc\nRJHiqclMyNG1dKORaTYKSP8zcZvwP7++B17j6SlADYweswI+zCTQIwDIlaYD\n4TyE00eJsWiq+MuLEGSSPMfgzKFmcaL/ZnrnOCyVvNmtwvVCAopPr3ShV265\nY/Ti6Xaccnl5NnHq7Lv223iVZwtER5Uag6zGbb4WnSIxriKiUTowPHVTjrlr\nHJ5qtmIPMVCJNkoy7lYDleLQAxhAOegpnk3FtnoAWPOPvnIXT//pHQrr6v1o\nEU0tUrHZWG9VlTiDVr1er7n4zs27T4SfMVx+lUBu7zY3PUfS7axVlLyeXPmD\n6znV2S9mXypm1P/Q4rG7wahU2ZHd2egRpX7iY5rolbO65VIG+xU8ucZ00jcw\ndj1s\r\n=mfg4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr5Y59SDLqXRbjcZ2KOH4uQQFsIdZlQoiKqW0vv1hzJgIgQ2K6K5yiqCNo/GtNTVj+8cHNRiotXMHjbju7VAH4f+Y="}],"size":2139,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.6.tgz"},"maintainers":[{"email":"sorrycc@gmail.com","name":"sorrycc"},{"email":"45808948@qq.com","name":"ycjcl868"},{"email":"yutingzhao1991@sina.com","name":"yutingzhao1991"}],"_npmUser":{"name":"ycjcl868","email":"45808948@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.8.6_1578036324005_0.3891504713246403"},"_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":1578036324200,"_cnpm_publish_time":1578036324200,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}