{"name":"umi-plugin-routes","version":"1.4.3","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.12"},"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.3","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-0VjjFAMBw1RN7rfMxbEfV/F/NROpOMdql2c3FEjBhO41CpLUPVsogushjdmA7HZRW1Tt6r/yE4WnioZ5gCKX7Q==","shasum":"b7b30b2df07adc7212f9ea1689a80615fc66635a","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.3.tgz","fileCount":7,"unpackedSize":6445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJC86CRA9TVsSAnZWagAAfjwP+gJNSRR2t/X2VFPmNQ1b\nJKGE4ELYy1cKE0ceFqBvlEXSaeG61vIjQkNUJ0ebbDpJ76/KLJ6YEc/eZ23i\nzFyZ5DVrmRqs/jkMKvO9XFXg341rsiVJrUsj8sHGNzYm8oWBWL9NjBJe+ozn\nULwMRSoKWAnuoNzXywnfepeUvAcJLZzgcckjGk1bO8XNaryLF9YLG0+frUhB\nEhCCytf254taMTnsROeYM61+afQiMhC+V1WGwakZa93LIWp93mDENzwm+rhu\nN/t/nwwtS9mAbItJ8fXhN4bAJXRxXIZRJf277QIWcgbZYOdoDdpavoxZxa3r\ndFhGyfXvVhZq4r+njrftiZl8o+E75wIV6orWcM2+waff06RhD3VbSBl3yl3b\ni9Ecaqoopd81qElmPXMY90Y9qLXDQmJdiz2RUKd1tJ8h73Yz+TWj5ICNMT42\nBZhi7AeyDMT9AKBts47ugkXbh3aUdJv7vNEKnfn2xPqCEb/YwgxepBnR4af+\nb3suirzkKEs4WnBqb7Uw0D+CW+9vnuSDNczSMzPS9XbM41MC9Ue/jCv/+eow\n7BBnt2Y0+qv+5HixraVcGL3B0swKR0wEZLjDbcMtvyrttsshbm1LZTBdhEW2\nVpuvxobAjQi0nbmqPQaXVcp38nIWdRWL5HKs7tHUDtyLONIyzTYo/scO/iPd\nPray\r\n=ShOl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHdRflM1PK+oFTPzIqay0Gc0CwgMevOuPsiPag+fZ6yKAiAf9f95msME+XHXh3eIqI0x970bXzPmNeVC4p6hApQr5w=="}],"size":2099,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.3.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.3_1562652473690_0.03793124872680176"},"_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":1562652473854,"_cnpm_publish_time":1562652473854,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}