{"name":"umi-plugin-routes","version":"1.0.4","main":"./lib/index.js","devDependencies":{"umi-types":"0.1.1"},"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.0.4","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-nD3mmZ1rcJCaa0V8/UVEBSoqNivzwNOVEw6ampf3EoFzeMThxjXaPhY28AlSy5xmUIFZtijNyKXhYayk+h2L2Q==","shasum":"0e10c38f54312ddffba11423ccf00d7ac14bb845","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.4.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\nwsFcBAEBCAAQBQJcame8CRA9TVsSAnZWagAAL/4P+gNnvsTHqUAL3KUQtcnP\n0ynU+M3EFZeKpGSms+Bd6hGBdcS6siqifyVChSb/Xy9Xb7zHvooUfOeH7YwM\nsnCur0J3BPh+dsvXLexMRQrMMnEFmWAkU3z4anZKmjdJEBuEa08dlvz+haub\nRyDkaC1pZSnxCFJjLfzC05PXUvvIR0UEpa+exF1h1o0wKrh8PdvBzkHMshb5\nxwwMCyuFFbNYXO17xJdxEn2/MgzsgfF8j9jzjdxEYQU9aK8Kc66VkZxDhZJ6\nkz48w6WVVb0GqyoKtnZea0XDzubhqDmYE33kVKLd/mzQhq56/AZSU1ezqWNB\nx5NQDkNXCILzRN+XNZV1ompaAS+5QSSjNtU9W8+WA7CdPsEB8kD2gDkpXMIa\nZKFjmk9w8T7HBV1GtAoNdQaZo2obM/N2akOo9XRbHRIioZN+13zjXUuxEdm4\n+lRdt+qe8c9j++cDNdruvZtST/REeAZ3cmirNHo0WxITdgw7IQJC/DmiWPgi\nbFn37FfNX2GEvY81i5WvBROVbU4jTOYbc9/AMwR2mh3nifh3XwFmylYEBFXd\n7jGpIww3SPey/isv2cbgO0d1aX5FpDJp7c1RNDK0XOW/lBHQYe6pEG1llmBc\njcU03QNnN5+DpwnItUE+FT7+Ag3mZKuF7SXx2gU6I/91XJaphanax3nEHEhV\nScYN\r\n=VDqD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAKXyn8Oy7xn+HlGUo6MiAGoJNUZk+QuDXxZRwX0gaaqAiEAjPFE5kn+Qho2lYI03EgtlKB8L6u2JFYjLMsG2oXb97Y="}],"size":2250,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.4.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.0.4_1550477243593_0.6942474377423205"},"_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":1550477243734,"_cnpm_publish_time":1550477243734,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}