{"name":"umi-plugin-routes","version":"1.2.3","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.3"},"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.2.3","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-O7iYmPqqDqVSSR8somRLYvqrtih4/hTyKBPvwu3NK7o5wKTpD+m7Q2XIzK/VaFM4VgE7peXtO3IIjO536V86YA==","shasum":"31c35a1f20b9e0c59a4c8ffef514234a45c6660f","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.2.3.tgz","fileCount":8,"unpackedSize":7757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcv87uCRA9TVsSAnZWagAAuiEP/jCUv0Ug4fpbEc6+gA9N\nMruceeeXrl9ZP/0p21FgF/0yyLY3tOKBcrT4kt2KIXDhxNkE6we13qe5KIqa\n2EEhpLobQFM4skl+rlwpUe6RtAtqDjv21zWk2+4NFnEOHshlGMb/RLN7zGI/\nz1z7k7fCHwft3JY0+YaPHmUQPyN8vTceyT8Y1cPcryBWQWLZ+uf8wnL19SUZ\nyTDTaopBVPpTkFsT+3QDI4gMEXVG8Xqh8T/62Pb00+vQFPv6zgPa+fPMWObH\nrikSRhrcNV/xSvaRf1mkNYZncfnmNEbMusx/x5JVEQE99KuRCNpEgh3/pApx\nFY/aPgPoDVXKGBkfk38FQrlWeMT1WasJprKYxdu8PBQFd8V3CSweeh+7jMA9\nfwIhDFUWwM706bv1h5hSqRpRfRVXKUWmdWB0qsMO2tEuL8Qbf6JPlY6hPyGG\nXFUfOaQy7mUZE3GgQwJjERVLemXFEPIH81IgNxueo6QYABAAoYSEKGIcwDuj\nz/4DhW9ovVoK+EqCnYx6p8fVJnJTIOseXgooDtlMhpV7PFZvllFau0Sl5QXP\ngUCQiVpdYY83b7ewOL3pS0S0y8tNh6dSPTXNXlnUX4qoiLdyTjYrxD2Mx4nV\nFvAbJJGl7y0H8yWJu09WHHkcajJ2RYXCBzzPWxBj+8UqROxFGWx3Ka2BBuoF\naRRa\r\n=o+H8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxzec3oPfak5XGwAYamuPH7KbH6wjlkL8WzC1b8bsMbQIge51zknMb7zRLAiswNjkC4qTDtNJ2CblPwS1YRNIlKrU="}],"size":2251,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.2.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.2.3_1556074220681_0.2947409581825642"},"_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":1556074221451,"_cnpm_publish_time":1556074221451,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}