Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vue3-vant-mobile

> 前端框架
Open source

An mobile web apps template based on the Vue 3 ecosystem。一个基于 Vue 3 生态系统的移动 web 应用模板,帮助你快速完成业务开发。

2.1K stars0 likes2 views
WebsiteGitHub

About


Features

  • ⚡️ Vue 3, Vite 8, pnpm - born with fastness

  • File based routing

  • Components auto importing

  • State Management via Pinia

  • PWA

  • UnoCSS - the instant on-demand atomic CSS engine

  • I18n ready

  • Use the new <script setup> syntax

  • APIs auto importing - use Composition API and others directly

  • TypeScript, of course

  • Mock server Support

  • Git hooks - lint and commit

  • Vant - Vue UI library for mobile web apps

  • vConsole - the developer tool for mobile web page

  • Browser adaptation - use viewport vw/vh units

  • Desktop optimization - the mobile area

  • Dark Mode Support

  • ️ Configure ESM as default

  • ☁️ Deploy on Netlify, zero-config


Pre-packed

UI Frameworks

  • UnoCSS - The instant on-demand atomic CSS engine
  • Vant - Vue UI library for mobile web apps
    • vant-touch-emulator - Simulate mobile touch events on the desktop
    • vant-use - Built-in composition APIs of Vant

Plugins

  • Vue Router
  • Pinia - Intuitive, type safe, light and flexible Store for Vue using the composition api
    • pinia-plugin-persistedstate - Configurable persistence and rehydration of Pinia stores
  • Vue I18n - Internationalization
    • unplugin-vue-i18n - unplugin for Vue I18n
  • unplugin-vue-components - components auto import
  • unplugin-auto-import - Directly use Vue Composition API and others without importing
  • vite-plugin-vconsole - A lightweight, extendable front-end developer tool for mobile web page
  • vite-plugin-mock-dev-server - Vite Plugin for API mock dev server
  • postcss-mobile-forever - To adapt different displays by one mobile viewport
  • vite-plugin-vue-devtools - Designed to enhance the Vue developer experience
  • vueuse - collection of useful composition APIs
  • @unhead/vue v2 - manipulate document head reactively
  • vite-plugin-pwa - PWA
  • vite-plugin-sitemap - sitemap and robots generator

Coding Style

  • Use Composition API with <script setup> SFC syntax
  • ESLint with @antfu/eslint-config, single quotes, no semi

Dev tools

  • TypeScript
  • pnpm - fast, disk space efficient package manager
  • Netlify - zero-config deployment
  • VS Code Extensions
    • Volar - Vue 3 <script setup> IDE support
    • Unocss - UnoCSS for VS Code
    • Goto Alias - Go to Definition following alias redirections
    • Iconify IntelliSense - Icon inline display and autocomplete
    • File Nesting - Config of File Nesting for VS Code
    • i18n Ally - All in one i18n support
    • ESLint - Eslint support
    • Better JSON5 - JSON5 support

Try it now

vue3-vant-mobile requires Node 22.22.0+

GitHub Template

Create a repo from this template on GitHub

Clone to local

If you prefer to do it manually with the cleaner git history

bash
pnpm dlx tiged vue-zone/vue3-vant-mobile my-mobile-app # If you don't have pnpm installed, run: npm install -g pnpm
cd my-mobile-app
pnpm i

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change the author name in LICENSE
  • Change the title in index.html
  • Change the hostname in vite.config.ts
  • Change the favicon in public
  • Clean up the READMEs and remove routes

And, enjoy :)

Usage

Development

Just run and visit http://localhost:3000

bash
pnpm dev

Build

To build the App, run

bash
pnpm build

And you will see the generated file in dist that ready to be served.

Deploy on Netlify

Go to Netlify and select your clone, OK along the way, and your App will be live in a minute.

Community

We recommend that issue be used for problem feedback, or Wechat group.

Donation ☕

Buy Me a Coffee

Our Sponsors

Your sponsorship will help us continue to iterate on this exciting project!

Contributors

Our contributors have made this project better. Thank you!

License

MIT License

⬆️ Back to Top

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScripth5mobilesetupstarter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架