ux-autoroute-plugin has 1 recorded weekly downloads on npm, a decrease of 98.0% over the past 30 days.
It ranks #2220 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -80.0%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About ux-autoroute-plugin
ux-autoroute-plugin
webpack 自动路由插件,该插件用于生成路由映射表文件,配套解析组件ux-autoroute
在 src 下读取 pages 文件夹,在 config 文件夹下,生成文件 routerConfig.ts:
路由要求所有路由文件夹都是 小写且不含特殊字符 ,且文件夹内必须有 index.jsx|index.tsx 为该路由的路由组件。
noLazy,路由默认都会生成为动态路由,会进行代码分片,加上这个配置之后的路由不会生成动态路由,而是使用 import 静态引入
default,默认路由,项目会以 pages 为根路由即/,往下都是其子路由,如果不使用根路由,直接将其视作引导页,其子路由中需要在某一个路由配置中加入 default, 如在 pages 文件夹下新建 login 文件夹,即 login 路由,添加配置 route.config,那么在访问/会被引导到/login。
pages/login/route.config,/login路由的配置文件 route.config
如此在 pages,根路由下一般会取消动态路由,因为作为跟路由代码量本身没有必要分片加载,所以在配置中加入 noLazy: pages/route.config,/路由配置文件:
本插件始终只作为生成路由映射表文件,除了noLazy(因为需用其来判断是否需要import和loadable),没有对路由配置的定义 对映射表规则的解析需要自行定义,如重新封装react-router,在此我们已经提供了一套较为完善的解析组件
ux-autoroute
在线 demo
Description from the npm listing.
- react
- react-router
- 自动路由
- 路由映射表
- webpack
- webpack-plugin
Where ux-autoroute-plugin sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (543)Similar npm Webpack plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/ux-autoroute-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.