# vue2.7-vite **Repository Path**: hecun/vue2.7-vite ## Basic Information - **Project Name**: vue2.7-vite - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-22 - **Last Updated**: 2025-05-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue 2.7 + Vite 前端工程化项目 开箱即用的模板项目,集成主流技术栈 ## 基础搭建 推荐使用 [pnpm](https://pnpm.io/zh/) 来作为本项目的包管理工具。 ```bash # 安装依赖 pnpm i # 运行 pnpm run dev # 打包 pnpm run build # 打包文件预览 pnpm run preview ``` ### 插件安装 此脚手架必须安以下依赖才能保证,代码自动格式化的有效运行: - Vetur - EditorConfig for VS Code - ESLint - Stylelint - UnoCss ## 功能列表 - [x] Vue2.7 + Vite - [x] Eslint、Stylelint、Commitlint、Prettier 统一开发规范 - [x] husky + lint-staged (git commit 时自动格式化代码) - [x] Vue 全家桶集成 - [x] Axios 封装及接口管理 - [x] unplugin-auto-import Api自动导入配置 - [x] unplugin-vue-components 组件自动导入配置 - [x] Unocss 即时按需 Atomic CSS 引擎 - [x] vite.config.js 基础配置 - [x] 跨域配置 - [x] 多环境变量配置 - [x] 浏览器构建兼容性