vite-plugin-uniapp-routes
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

vite-plugin-uniapp-routes

一个根据 pages.json 自动生成路由枚举文件的 Vite 插件。

vite npm version

pages.json 文件改变时更新 src/routes.ts

安装

pnpm i vite-plugin-uniapp-routes -D

使用

import { uniappRoutes } from "vite-plugin-uniapp-routes";

export default defineConfig({
  plugins: [uniappRoutes()],
});

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-uniapp-routes

Weekly Downloads

18

Version

1.1.1

License

MIT

Unpacked Size

2.35 kB

Total Files

3

Last publish

Collaborators

  • bit2byte