# v3-template **Repository Path**: qinchaobin/v3-template ## Basic Information - **Project Name**: v3-template - **Description**: vue3-pinia-vant-vite-ts移动端模板 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-02-20 - **Last Updated**: 2024-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # v3-template 项目为vite-vue3模板,包含常用功能模块,如: - 多环境配置(目录/env) - 多语言支持(目录/src/locales) - 按需加载语言包 - 自动按需导入vue、vue-router、pinia相关api - Pinia全局状态管理(目录store) - 自定义vite插件(目录/src/vitePlugins) - 动态配置网站标题插件(插件vite-plugin-html-title) - 动态配置组件名称插件(插件vite-plugin-setup-name) - 打包完成自动压缩至zip插件(插件vite-plugin-zip) ## 目录结构 ``` ├── README.md ├── env │ ├── .env │ ├── .env.development │ └── .env.production ├── package.json ├── pnpm-lock.yaml ├── public │ └── favicon.ico ├── src │ ├── api │ ├── assets │ ├── components │ ├── hooks │ ├── locales │ ├── router │ ├── store │ ├── utils │ ├── views │ ├── vitePlugins │ ├── App.vue │ ├── auto-import.d.ts │ └── main.ts ├── vitePlugins ├── tsconfig.json └── vite.config.ts ``` ## 安装依赖 ```sh pnpm install ``` ### 启动开发环境 ```sh pnpm dev ``` ### 打包生产环境 ```sh pnpm build ```