{"name":"umi-plugin-routes","version":"1.4.2","main":"./lib/index.js","devDependencies":{"umi-types":"0.3.11"},"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.2","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-UdjWVa8Jo4KVtIS52+26yF2F1VVeZJYwFp8Dq0FCCGq0pQq/fppUuxZp8hIxC9v1K/CtCxac7k7t7c5amoM3hg==","shasum":"56bf1cff25da9316e4df36fc4e08e33cd92aab42","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.4.2.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\nwsFcBAEBCAAQBQJdGdJBCRA9TVsSAnZWagAAoy0P/Ro/Nzw04x1nB0k1XjD7\n1IYX6+lkugzqHEDSInpeq6WyR6HUkcES/yiVbxiqpEufKt/QIVdXK1ujH7ec\nSPxRXNkXIfO3V38/iSMHpX14t9jFrQOFB/P0PhwG4D5/hDcb5JGBVAsIsD91\n1EDE176MlrpeMalR6iTmVdoNs/g738GF1voerW7jrnPZb7HW8OpGGYevoX1m\nTl00VSzE97ftwtRC9o+/7MQ7IcxM29/2aiPK/LgS3COOZI6WrEqW0HwAwVqX\n2kEvtMj+xHrUztt2ekcUH/5j8ZsiwoyB4KHXYLs5YARDcUpr5rEiaGWl0pey\n4sxbq+I13OAOac5tIV60c5ojsR/0pFnjt2i3bEon0evUX0NCJcYDBb/HXlir\nzlNPSWPEeSdlydymwtKZM8d2QW8+IalXkgygz+VfumGYqrwAUfXkIoBHuh0L\nkuLyEOeo1oL89oiVrFMizaEzmKUZCXTxvP7b0xEeQsaznd6sqYW0vt9/NzId\npO4KnDZHjfVXKDa8EorYQEXsO7iP0C6hIehgydbrLx+57+Khi8GM+TZuxs2m\nZEOi7twHuATokShdVnObRMODc+x7Cfdl9guRV00Vc6eK866MfQFDBe578a1R\nc66U6FycuXPba3mZYc9PEqcRPA46X7KE7UVLJ+yKLn2IuTBbsDkv/C5tXaPw\nEbyd\r\n=cwMD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiXxGdjpBnuxH5vpI0xs3/KvoP/BCDHotc4Ub5lXw0dgIgbmpT+miv52cd+C6eQXPUEHWwZZqjHHTdq3OXz+Wcem0="}],"size":2099,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.4.2.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.2_1561973312818_0.4623529664681121"},"_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":1561973312935,"_cnpm_publish_time":1561973312935,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}