Official scaffolding tool for weapp-vite, a Vite-based build tool for WeChat Mini Programs. Current stable version 2.3.10. Actively maintained with weekly releases. Key differentiator: provides multiple templates (Wevu, TDesign, Tailwindcss, Vant) and a programmable API for CI/CD, automatically aligning weapp-vite and wevu versions. Requires Node.js ^20.19.0 || >=22.12.0.
npm install create-weapp-viteVerified import paths — ran on the pinned version, not inferred.
Creates a new WeChat Mini Program project using the 'wevu' template via the programmatic API.
Update Node.js to 20.19.0+ or 22.12.0+ using nvm or your package manager.
Ensure your project uses ESM ("type": "module" in package.json) or use dynamic import() if needed.Change `import createProject from 'create-weapp-vite'` to `import { createProject } from 'create-weapp-vite'`.Use the TemplateName enum or exact lowercase string: 'default', 'wevu', 'wevu-tdesign', 'tailwindcss', 'tdesign', 'vant', 'plugin', 'lib'.
Always supply a project name when using non-interactive mode, e.g., `pnpm create weapp-vite my-app wevu`.
Upgrade Node.js to >=20.19.0 and change to ESM ("type": "module" in package.json) or use `await import('create-weapp-vite')`.Use one of the supported template names: default, wevu, wevu-tdesign, tailwindcss, tdesign, vant, plugin, lib.
Pass a non-empty string as the first argument to createProject(), e.g., createProject('my-app', TemplateName.default).Run `pnpm add create-weapp-vite` or `npm install create-weapp-vite` before importing.
No dependency data recorded yet.