{"name":"umi-plugin-routes","version":"1.0.0","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":"## Usage","_id":"umi-plugin-routes@1.0.0","_npmVersion":"6.4.0","_nodeVersion":"10.6.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-yGZgNNwQp+SG2zUznteAdMSGDXPUoBzuwt3PZ+8up3yK9GHGW5Scw40o439iSs62/AdBoEeQqUKDKuYK8eWoyQ==","shasum":"06a75d65ae9e286de53ba8938a5a017151074c41","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.0.tgz","fileCount":6,"unpackedSize":4991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjHJICRA9TVsSAnZWagAAMQUP/iT52xu57Y3CLCRHfRWH\nb4Fy3QQ8eoq4klVPvsG7/4oqNrrrP8O9tiyAZ5sF+8pjOTIxX2zGcPIYy8SA\nfFcnmcpOuW4Jk+UCiWHmiNdvdjGtfixSgDf46RO832OPpCeGhNTZydDhNL3T\nOPtwqD1WOK67teJ1hjKuz1RH4mhg4tmGP2F28ANY4nL4z6ctwtw3QRLOVLu+\n1jKLR/oAjqhWZ8gm8BRzeNFMVJo5R0CBmwX7MiancikkxK8ipRN1NN3Kl/v7\njDfgvYGwAXfFlfo62G12RLhhXJI7GZtZr1R/c7akfq3fYNeKwbf9komLuQ03\n0NakiOxzxP59UKelXw5O6LE6II4y15GyMbggzyhKy37Ew/OSefIx0lNqbUzi\nEevJ1MgC/+beCXzswfB0lf2CM0XciQ5TQSMObG0vGJD7gKmBSwW6tD+eABOO\n8YtPTlaE8laNxGDVZbDZ0kc35uLAUrLv+030jnGMGQxRwcuUQzGe50b7o/4K\nE/3OXataP45OglK8lTx2sK16aBYymK9WuQXVMw1e7rhmb5vVXVmQYxB5v0DX\nFgcSiWifKWJ90vg6hAZjV+/gvNbD0+zgTpZ5oCBUyYfgibaH3DdIkHHr/KX4\nBNCTLti/6pmRsRmYefNfMCBvsR4uZXokZqzbpqRPqLv4GmeTM1kuuzEc+RoQ\nLsLc\r\n=KpcT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV4lhTJPcq4kpAyJsPi+E7UW8hh9Q1t56Q7jLT998+QQIgbX8YeCu/1kxyKFyJjNRDVz6Oak6xGshGNrk5ZJNhS48="}],"size":1640,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.0.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.0.0_1535930951487_0.8563316783109995"},"_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":1535930951641,"_cnpm_publish_time":1535930951641,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}