Skip to content
PluginStats

ux-autoroute-plugin weekly downloads statistics

By Hahahahx · npm · Webpack plugins

自动路由

View on npm Outdated · Oct 27, 2026

ux-autoroute-plugin has 72 recorded weekly downloads on npm, an increase of 454% over the past 30 days, ranking #2690 of 3,247 tracked listings.

Weekly downloads
72
Official API · Dec 5, 2026
7-day growth
+414%
+58 weekly downloads
30-day growth
+454%
+59 weekly downloads
90-day growth
+555%
+61 weekly downloads
Rank
#2690
▲ 210 in 7 days

About ux-autoroute-plugin

ux-autoroute-plugin

webpack 自动路由插件,该插件用于生成路由映射表文件,配套解析组件ux-autoroute

    // paths.appSrc 为src目录
    new UxAutoRouterPlugin({
        pagePath: path.join(paths.appSrc, 'pages'),
        output: path.join(paths.appSrc, 'config'),
        filename:'routerConfig.ts'
    })

在 src 下读取 pages 文件夹,在 config 文件夹下,生成文件 routerConfig.ts:

//因为import是静态静态引入,所以无法使用变量将component传入做动态路由,只能在此处把整个方法作为动态传递;
import loadable from '@loadable/component'; 
//会根据当前的文件夹所在路径(node_modules/ux-autoroute-plugin)与pagePath生成相对路;
import Page from './pages/index';  

const router = [
    {
        noLazy: true,
        child: [
            {
                default: true,
                child: [],
                componentPath: loadable(
                    function (){
                        return import('../../../src/pages/login//login/index.tsx')
                    }
                ),   //会根据output与pagePath生成相对路径
                path: '/login'
            },
            {
                child: [],
                componentPath:loadable(
                    function (){
                        return import('../../../src/pages//index.tsx')
                    }
                ),
                path: '/main'
            }
        ],
        path: '',
        component: Page
    }
]

export default router

路由要求所有路由文件夹都是 小写且不含特殊字符 ,且文件夹内必须有 index.jsx|index.tsx 为该路由的路由组件。

noLazy,路由默认都会生成为动态路由,会进行代码分片,加上这个配置之后的路由不会生成动态路由,而是使用 import 静态引入

default,默认路由,项目会以 pages 为根路由即/,往下都是其子路由,如果不使用根路由,直接将其视作引导页,其子路由中需要在某一个路由配置中加入 default,<br/> 如在 pages 文件夹下新建 login 文件夹,即 login 路由,添加配置 route.config,那么在访问/会被引导到/login。

pages/login/route.config,/login路由的配置文件 route.config

{
    "default":true
}

如此在 pages,根路由下一般会取消动态路由,因为作为跟路由代码量本身没有必要分片加载,所以在配置中加入 noLazy: pages/route.config,/路由配置文件:

{
    "noLazy":true
}

<b> 本插件始终只作为生成路由映射表文件,除了noLazy(因为需用其来判断是否需要import和loadable),没有对路由配置的定义 对映射表规则的解析需要自行定义,如重新封装react-router,在此我们已经提供了一套较为完善的解析组件

ux-autoroute

在线 demo </b>

Description from the npm listing.

  • react
  • react-router
  • 自动路由
  • 路由映射表
  • webpack
  • webpack-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

ux-autoroute-plugin weekly downloads on npm, last 90 days: 72 weekly downloads as of Dec 5, 2026, +555% over 90 days.ux-autoroute-pluginWeekly downloads on npm · Last 90 days72downloads / week+555% over 90 days01020304050607080Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
ux-autoroute-plugin weekly downloads on npm, last 90 days: 72 weekly downloads as of Dec 5, 2026, +555% over 90 days.

7/30/90-day growth

ux-autoroute-plugin weekly downloads growth on npm: +414% over 7 days, +454% over 30 days, +555% over 90 days.ux-autoroute-pluginWeekly downloads growth on npm72downloads / week now7-day growth+58 weekly downloads+414%30-day growth+59 weekly downloads+454%90-day growth+61 weekly downloads+555%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
ux-autoroute-plugin weekly downloads growth on npm: +414% over 7 days, +454% over 30 days, +555% over 90 days.

Ranking history

ux-autoroute-plugin npm ranking history: currently #2690 (by weekly downloads).ux-autoroute-pluginnpm ranking · by weekly downloads · Last 90 days#2690current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 21 observations · Updated Dec 5, 2026pluginstats.com
ux-autoroute-plugin npm ranking history: currently #2690 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 135, #10 (overall #2,690)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 11, #2 (overall #202)
Webpack plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (592)
Recent weekly downloads observations for ux-autoroute-plugin
Date (UTC)Weekly downloadsChange vs. previous
720
72-2
74+4
70+66
4-4
8-2
10-4
140
14+2
12-34
460
46+2
440
44—

Similar npm Webpack plugins plugins

All 20 ux-autoroute-plugin alternatives

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 27, 2026. See the methodology.