{"name":"umi-plugin-routes","version":"1.0.3","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes"},"homepage":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes","authors":["chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"],"bugs":{"url":"https://github.com/umijs/umi/issues"},"license":"MIT","description":"routes modification plugin for umi.","_id":"umi-plugin-routes@1.0.3","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-ttAOgi1EaOZ/XZKYfaDzsIoY5yY8BCfOV4yKyPjdli1QTqYT3r60u9XICa+fd3wMYJiwV9HNF0US7ivkuIEpGw==","shasum":"25966f1f913a273d71f13703d75dfed4b6e794cf","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.3.tgz","fileCount":6,"unpackedSize":5370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRsCeCRA9TVsSAnZWagAAWsMP/3B3vD0Uh9fGcb0Gaj+Z\nE5XXIqamwmBjq7cBqBqiKl7tgmvf75wG/r8jcEoZPDZARFv4uc/ZMSCn3W4Q\nriuc5uxPtxYKANRKCI5gIEmCwGYqRvssnvQusNHtItWEy0b8mTxtrUBYPsUj\nsPxsiY1tnGhNt1BamteBEi67aU80BePdELMUvfJdntbN+ebQW1+wrzToGk8z\nlFpPcj3Fkp8AvCXzyrQ3UdYZY8StdzumQoLsz2OHqeNNwHFzu9YCX5PwK82E\nN2qX3vI8fi12Sq/OOgl3Ca21hHgx83JVtEmZap0JQiy/xVaOZEGXljY8j2Z+\ng9vxxCvdlA+PAHjTWPYkGyDRvM85+ZAMkTr8vCm/mQJ6QowxPeKXktuYDQDA\nL7VXg+5ppp4bLk2zdHARS/eGHXxytYHjppciEOvypLMhlGXj3rI4GKibJJZN\nXuQNakcnjBR+BGYjIJv6d2nEKIi8/8EK/MN+KGYNpgJdYUvPPPrDhdRyENyn\nwzJdYWLZhmJwIziTqhTTpoyii287fAtOlKRM53gbPukiWEoMiVYUIW1RzdiB\nfmWfoq+ftl2OdVsJhbORO0pHklyKxPdvmdfGH7dP7R59cYG5VwWA3nUYhQmH\noc5bhqesliOmlb9MZL99JEOZdJ/5T7oKn1HvXnAPEXX1izzDABYK9j/EYbrS\nEjzC\r\n=CjvE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxPyQ9cekxNKl29b5kZ6g/7dlJW5vV3LqUjmLMtYr/JgIgKEXgACoEp3wol1N5od8+ptwH4VDrdgmCvqzUSZi42jw="}],"size":1761,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.3.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.0.3_1548140702097_0.8630593348289106"},"_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":1548140702220,"_cnpm_publish_time":1548140702220,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}