Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including umi-plugin-separate-route with all npm packages installed. Try it out:

var umiPluginSeparateRoute = require("umi-plugin-separate-route")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

umi-plugin-separate-route v1.0.0

通过该插件,你可以将各个组件的路由配置信息,放在组件的旁边的js文件 `[组件文件名].route.js` 中;对于文件名为 `index` 的组件,也可将路由信息放在 `route.js` 中

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free