
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
uni-read-pages-vite
Advanced tools
<!-- * @Author: weisheng * @Date: 2023-03-10 13:13:40 * @LastEditTime: 2023-05-06 20:18:18 * @LastEditors: weisheng * @Description: * @FilePath: \uni-read-pages-vite\README.md * 记得注释 --> # uni-read-pages-vite
参考 uni-read-pages 开发,仅支持使用vite创建的uni-app项目,用于读取pages.json中的配置。
您可以使用 Yarn 或 npm 安装该软件包(选择一个):
yarn add uni-read-pages-vite -D
npm install uni-read-pages-vite --save
配置 vite.config.js 通过 define 注入全局变量 查看文档
vite.config.js//vite.config.js
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import TransformPages from 'uni-read-pages-vite'
export default defineConfig({
plugins: [uni()],
define: {
ROUTES: new TransformPages().routes
}
});
//vite.config.js
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import TransformPages from 'uni-read-pages-vite'
export default defineConfig({
plugins: [uni()],
define: {
ROUTES: new TransformPages(__dirname).routes
}
});
FAQs
<!-- * @Author: weisheng * @Date: 2023-03-10 13:13:40 * @LastEditTime: 2023-05-06 20:18:18 * @LastEditors: weisheng * @Description: * @FilePath: \uni-read-pages-vite\README.md * 记得注释 --> # uni-read-pages-vite
The npm package uni-read-pages-vite receives a total of 73 weekly downloads. As such, uni-read-pages-vite popularity was classified as not popular.
We found that uni-read-pages-vite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.