Skip to content

About

使用 TypeScript 来编写 uni-app 的 manifest.json

Resources

Code of conduct

Contributing

Stars

31 stars

Watchers

1 watching

Forks

Repository files navigation

banner

vite-plugin-uni-manifest

logo

License Stars NPM Version NPM Downloads

Author Maintainer

使用 TypeScript 来编写 uni-app 的 manifest.json。

📖 在线文档:uni-helper.js.org、Netlify、Cloudflare Pages。

不想看文档?直接问 AI 🤖 Ask DeepWiki

请考虑持续赞助以维持该项目的持续健康发展,非常感谢!🙏

安装

pnpm i -D @uni-helper/vite-plugin-uni-manifest

使用

📖 请阅读在线文档、本仓库的 docs/(pnpm docs:dev 本地预览)或各包 README 了解使用方法。

// vite.config.mts
import Uni from '@uni-helper/plugin-uni'
// 或者
// import dcloudioUni from '@dcloudio/vite-plugin-uni'
// const Uni = dcloudioUni.default || dcloudioUni
import UniManifest from '@uni-helper/vite-plugin-uni-manifest'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    UniManifest(), // 需要在 Uni() 之前调用
    Uni()
  ],
})

关联项目

包

包 说明
@uni-helper/vite-plugin-uni-manifest Vite 插件,从 manifest.config.* 生成 manifest.json
@uni-helper/uni-manifest-types manifest.json 的 TypeScript 类型
@uni-helper/manifest-json-schema manifest.json 的 JSON Schema(由 types 生成)

参与贡献

请阅读 CONTRIBUTING.md 了解本地开发、测试与提交规范;AGENTS.md 面向 AI 助手。

许可证

本项目基于 MIT 许可发布。

About

使用 TypeScript 来编写 uni-app 的 manifest.json

Resources

Code of conduct

Contributing

Stars

31 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages