{"name":"umi-plugin-routes","version":"1.8.3","main":"./lib/index.js","devDependencies":{"umi-types":"0.5.8"},"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.3","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-I7JYbuNzkciaKbAAEotcoaIjEX5sHeu4sRqdURBIAQk20ez24t5ZioQNW4q668Zt+2PgfYzJOhmELDMLWjcH5w==","shasum":"9b136407a0087799a3e902e20d73247e81240ce1","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.8.3.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\nwsFcBAEBCAAQBQJd5novCRA9TVsSAnZWagAACXEP/iPpE0AyEdt/3PUTa1Wq\n59VJ3mdJWI4kVADQKptkUNSx5gOno6y5Te28L2HxeTBTMHOv0EwThGH95gUF\nzTwXM/+Az7TtBI61KTzD8labWEmCmIV9JpSUvUrOulNZiDqCkBQIWX+NhYMp\nKJh/A07K3ovzsJSWJTsPU3bECh3zXFLdevNunGmgfi4obYX7GeG/N2ylp3ni\ndI4ngJ0ZEWaXs3Yt1BjVgNUS8+DRsJy0STLvvH8Umf69mhjGg+NI0GMBKSiJ\nChUx34M2FRkAYLNVYwIlA6LxhWeZ2N0rv/6oxtI9mfveuFrNRb4zlc445+/B\nRrFKjTeY/Bu7EF3sDxVMI1bx+XQ63Tft2KDOR7YNLspYej7RcQz7+/uucFSV\nGuvyP+2CbrMWQ8+5qXL1huRmRbwzSeXfOkaZRNMEES8wdnzIQTg78tZoNXjK\nhDJqbbgEbbVTYTxVr4OJhJ8sS0oXzR3HrPlbGyMJNDmpfjFmDJY2OveNSeaD\nQh6jUFOlUE7CsU5COG3PyAhpyEWIjHjLbHruAhSMr2Mp8bDthsIGes8Bg10I\nBruIgKZag+P3ci2zq8tjobq3fZjojahIo8GBFj+PtxehlL8ZOyHijjwuJD+J\nvleczpS75H2JyMvhv04i9DDNybczoGnDCNTtUI7Pd9nCE0TxRiiEEWCCrwUS\n/m6m\r\n=7W2P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT42Wbwu0ISDp5Kf1Um+xWbCR7V6u49GywDKd/cwXTmgIgcllGVUkCQ3xSI2hx8cKoEgOY5Ec+2vv8djoZA5Y9Xz0="}],"size":2148,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.8.3.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.8.3_1575385646825_0.375407976905038"},"_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":1575385646951,"_cnpm_publish_time":1575385646951,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}