Vite Vue3 H5 Template

screenshot of Vite Vue3 H5 Template
vite
vue
scss

基于 vite2 + Vue3.2 + ts + pinia 的h5基础模版

Overview

This product is a basic template built with Vite2, Vue3.2, TypeScript, Pinia, mock, sass, vantUI, and viewport adaptation. It also includes features such as axios encapsulation, multiple environment variable configuration, alias configuration, global Sass styling, Vue-router, Pinia state management, mock data usage, proxy configuration, static resource usage, Axios encapsulation and API management, viewport adaptation, and more.

Features

  • Vue3.2 + TypeScript + Pinia + mock + sass + vantUI + viewport adaptation + axios encapsulation
  • Fast development startup, hot-reloading, and packaging speeds compared to Vue-cli
  • Multiple environment variable configuration
  • Alias configuration for easy import
  • Global Sass styling
  • Vue-router integration
  • Pinia state management
  • Mock data usage
  • Proxy configuration
  • Static resource usage
  • Axios encapsulation and API management
  • Viewport adaptation
  • Apple bottom safe distance adaptation
  • Dynamic title setting
  • Jssdk configuration
  • Eslint + Prettier development rules
  • husky + lint-staged commit validation
  • Packaging optimization

Summary

This product is a basic template built with Vite2 and Vue3.2, along with several other technologies, such as TypeScript, Pinia, mock, sass, vantUI, and viewport adaptation. It offers various features like fast development startup, hot-reloading, and packaging speeds, multiple environment variable configuration, alias configuration, global Sass styling, Vue-router integration, Pinia state management, mock data usage, proxy configuration, static resource usage, Axios encapsulation and API management, viewport adaptation, and more. The installation guide provides step-by-step instructions on how to set up and configure the template.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

vue
Vue

Vue.js is a lightweight and flexible JavaScript framework that allows developers to easily build dynamic and reactive user interfaces. Its intuitive syntax, modular architecture, and focus on performance make it a popular choice for modern web development.

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

pinia
Pinia

Pinia is the official state management library for Vue.js. It provides a simple and intuitive API with full TypeScript support, devtools integration, and modular design. Pinia replaces Vuex as the recommended state management solution for Vue 3.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.