Skip to content

JinJieBeWater/vite-plugin-uni-manifest

 
 

Repository files navigation

@uni-helper/vite-plugin-uni-manifest

使用 TypeScript 编写 uni-appmanifest.json

NPM version

相关依赖

安装

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

使用

// vite.config.ts
import Uni from '@dcloudio/vite-plugin-uni'
import UniManifest from '@uni-helper/vite-plugin-uni-manifest'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [UniManifest(), Uni()],
})

创建 manifest.config.(ts|mts|cts|js|cjs|mjs|json), 然后用 TypeScript 编写你的 manifest.json

// manifest.config.ts
import { defineManifestConfig } from '@uni-helper/vite-plugin-uni-manifest'

export default defineManifestConfig({
  // code here...
})

这里,你可以找到 uni-app 默认的 Vite-TS 模版的 manifest.json 是如何用 TypeScript 编写的。

Configuration

请查看 types.ts

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.5%
  • SCSS 2.0%
  • Other 1.5%