VueVite启动器

vite-vue2-js-starter-template — Vue 启动器模板

作者 ElanYoung

基于 Vite 与 Vue 2.7 的 JavaScript 启动模板,集成 Vue Router、Vuex、Less、Axios 及 ESLint、Prettier、Stylelint、Husky 等代码规范与 Git 钩子工具。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Vite 构建工具搭配 Vue 2.7,支持 Composition API 与 <script setup>

02

内置 Vue Router 与 Vuex,分别处理路由和状态管理

03

使用 Less 作为样式预处理器,Axios 作为 HTTP 客户端

04

集成 ESLint、Prettier、Stylelint、EditorConfig 的代码规范组合

05

通过 Husky、Lint-Staged、Commitizen、Commitlint 约束提交与 Git 钩子

06

提供 GitHub Template 与本地克隆两种初始化方式,并附使用后修改清单

模板详细介绍

这是一个面向 Vue 2 项目的启动模板,使用 Vite 作为构建工具,语言为 JavaScript。模板将 Vue 2.7、Vue Router、Vuex、Less 和 Axios 组合在一起,并附带一套代码规范与提交规范工具链:ESLint(airbnb-base 配置)、Prettier、Stylelint、EditorConfig,以及 Husky、Lint-Staged、Commitizen 和 Commitlint。

README 说明该模板需要 Node >= 14.18,提供 GitHub Template 与本地克隆两种使用方式,并列出使用后需要修改的清单:LICENSE 中的作者名、App.vue 中的标题、vite.config.js 中的 hostname、public 中的 favicon,以及删除 .github 文件夹和清理 README、路由。开发时运行 npm run dev 并访问 localhost:3000,构建使用 npm run build。

模板采用 MIT 许可,允许免费使用、修改、商用和分发,但分发时需保留版权声明与许可声明;代码按现状提供。演示图片、字体、图标等第三方素材的许可需单独核对,域名、托管等外部服务可能另行收费。

VueVite启动器

适合你的项目吗?

适用场景

  • 需要以 Vue 2 语法配合 Vite 构建工具启动新前端项目
  • 希望项目初始就带有 ESLint、Prettier、Stylelint 等代码规范配置
  • 需要统一团队 Git 提交信息格式与提交前检查流程
  • 在 Vue 2 项目中引入 Vue Router、Vuex、Less、Axios 的常规组合

适合人群

  • 使用 Vue 2 与 JavaScript 开发前端应用的团队或个人
  • 希望以 Vite 替代旧构建工具、同时保留 Vue 2 技术栈的项目
  • 重视代码规范与提交规范、希望减少初始配置工作量的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要 Node >= 14.18

  2. 2

    可通过 GitHub Template 生成仓库,或克隆到本地后执行 npm i 安装依赖

  3. 3

    开发运行 npm run dev 并访问 http://localhost:3000,构建运行 npm run build

  4. 4

    使用后按清单修改 LICENSE 作者名、App.vue 标题、vite.config.js 的 hostname、public 中的 favicon,并删除 .github 文件夹、清理 README 与路由

  5. 5

    Windows 用户可先执行 git config --global core.autocrlf input 关闭换行符转换

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 运行该模板需要 Node.js 版本不低于 14.18,低于此版本的环境无法正常安装依赖与启动开发服务器。
  • 使用模板后需按清单将 LICENSE 中的作者名替换为自己的信息,以符合 MIT 许可对版权声明的要求。
  • 模板使用后应删除包含资助信息的 .github 文件夹,避免保留原作者的赞助配置。
  • 使用模板后需清理 README 文档并移除示例路由,避免将演示内容带入实际项目。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Vite4 Vue2 JavaScript Starter Template requires Node >= 14.18

README 原文

Change the author name in `LICENSE`

README 原文

Remove the `.github` folder which contains the funding info

README 原文

Clean up the READMEs and remove routes

README 原文
https://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/LICENSEhttps://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 77 / 100
技术栈
Vue · Vite
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2023-06-03
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Vue。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: 9605ec26919b75433cadcd29acc73b1333691070d93e1fda277db85934fab417

2026-10-03T19:18:07.559Z

来源文件 / 仓库
<h1 align="center"><a href="https://github.com/ElanYoung/vite-vue2-js-template-starter" target="_blank">Vite 4 🚀 - Vue 2  Starter Template</a></h1>

<p align="center">
  <a href="https://nodejs.org/en/about/releases/">
    <img src="https://img.shields.io/node/v/vite.svg" alt="node compatility" />
  </a>
  <a href="https://cn.vitejs.dev" rel="nofollow">
    <img src="https://img.shields.io/badge/vite-4.3.9-3963bc.svg" alt="vite" style="max-width:100%;" />
  </a>
  <a href="https://github.com/vuejs/vue">
    <img src="https://img.shields.io/badge/vue-2.7.14-brightgreen.svg" alt="vue" />
  </a>
  <a href="https://github.com/vuejs/vue-router">
    <img src="https://img.shields.io/badge/vue--router-3.5.4-brightgreen.svg" alt="vue-router" />
  </a>
  <a href="https://github.com/vuejs/vuex">
    <img src="https://img.shields.io/badge/vuex-3.6.2-brightgreen.svg" alt="vuex" />
  </a>
  <a href="https://doc.starimmortal.com">
    <img alt="author" src="https://img.shields.io/badge/author-ElanYoung-blue.svg" />
  </a>
  <a href="https://github.com/ElanYoung/vite-vue2-js-starter-template/blob/master/LICENSE">
    <img alt="LICENSE" src="https://img.shields.io/github/license/ElanYoung/vite-vue2-js-starter-template.svg" />
  </a>
</p>

<p align='center'>
  <b>Vite4</b> + <b>Vue2</b> + <b>JavaScript</b> + <b>Vue Router</b> + <b>Vuex</b> + <b>Less</b> + <b>Axios</b> + <b>ESLint + Stylelint + Prettier</b>
</p>

<p align='center'>
  <a href="https://elanyoung.github.io/vite-vue2-js-starter-template">Live Demo</a>
</p>

<p align="center">
  <span>English | <a href="./README.zh-CN.md">简体中文</a></span>
</p>

## Features

+ ⚡️ [Vite 4](https://github.com/vitejs/vite) - born with fastness
+ 🖖 [Vue 2.7](https://github.com/vuejs/vue) - Composition API and `<script setup>`
+ 🚦 [Vue Router](https://github.com/vuejs/vue-router) - The official router for Vue.js.
+ 📦 [Vuex](https://github.com/vuejs/vuex) - A a state management pattern + library
+ 🎨 [Less](https://github.com/less/less.js) - It's CSS, with just a little more
+ 🔗 [Axios](https://github.com/axios/axios) - Promise based HTTP client for the browser and node.js
+ 🧰 [Husky](https://typicode.github.io/husky/#/) + [Lint-Staged](https://github.com/okonet/lint-staged) - Git Hook Tools
+ 🛡️ [EditorConfig](http://editorconfig.org) + [ESLint](http://eslint.org) + [Prettier](https://prettier.io) + [Stylelint](https://stylelint.io) + [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript#translation) - Code Standards
+ 🔨 [Commitizen](https://cz-git.qbb.sh/zh) + [Commitlint](https://commitlint.js.org) - Submit Standards

## Coding Style

+ [ESLint](https://eslint.org) with [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base)
+ [Prettier](https://prettier.io) with [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
+ [Stylelint](https://stylelint.io) with [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard)

## Development Tools

+ [npm](https://www.npmjs.com) - Package manager
+ [Visual Stuido Code Extensions](./.vscode/extensions.json)
  + [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - Fire up Vite server automatically
  + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) - Vue 2 tooling for VS Code
  + [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) - A solution for unifying code formats
  + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Find and fix problems in your JavaScript code
  + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) - An opinionated code formatter
  + [StyleLint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

## Try it now!

> Vite4 Vue2 JavaScript Starter Template requires Node >= 14.18

### GitHub Template

[Create a repo from this template on GitHub](https://github.com/ElanYoung/vite-vue2-js-starter-template/generate).

### Clone to local

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

```bash
# [optional] if you are using Windows, you need to close the end-of-line conversion
git config --global core.autocrlf input

# clone repository
git clone https://github.com/ElanYoung/vite-vue2-js-starter-template

# open folder vite-vue2-js-starter-template
cd vite-vue2-js-starter-template

# install packages
npm 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 `App.vue`
- [ ] Change the hostname in `vite.config.js`
- [ ] Change the favicon in `public`
- [ ] Remove the `.github` folder which contains the funding info
- [ ] Clean up the READMEs and remove routes

## Usage

### Development

> Just run and visit http://localhost:3000

```bash
## install dependencies
npm install

## set up
npm run dev
```

### Build

```bash
## build
npm run build
```

## Achievement

🎉 Added to the [Awesome Vite.Js](https://github.com/vitejs/awesome-vite#vue-2)

## License

[MIT](http://opensource.org/licenses/MIT)

Copyright (c) 2022 ElanYoung
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。