Skip to content

Vue2.7 and Vite template project! 集成Vue2.7、Vite、Unocss、lint等前端工程模板项目

Notifications You must be signed in to change notification settings

NaiveSteven/vue2.7-vite-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 2.7 + Vite 前端工程化项目

开箱即用的模板项目,集成主流技术栈

基础搭建

推荐使用 pnpm 来作为本项目的包管理工具。

# 安装依赖
pnpm i

# 运行
pnpm run dev

# 打包
pnpm run build

# 打包文件预览
pnpm run preview

插件安装

此脚手架必须安以下依赖才能保证,代码自动格式化的有效运行:

  • Vetur
  • EditorConfig for VS Code
  • ESLint
  • Stylelint
  • UnoCss

功能列表

  • Vue2.7 + Vite
  • Eslint、Stylelint、Commitlint、Prettier 统一开发规范
  • husky + lint-staged (git commit 时自动格式化代码)
  • Vue 全家桶集成
  • Axios 封装及接口管理
  • unplugin-auto-import Api自动导入配置
  • unplugin-vue-components 组件自动导入配置
  • Unocss 即时按需 Atomic CSS 引擎
  • vite.config.js 基础配置
  • 跨域配置
  • 多环境变量配置
  • 浏览器构建兼容性

About

Vue2.7 and Vite template project! 集成Vue2.7、Vite、Unocss、lint等前端工程模板项目

Resources

Stars

Watchers

Forks