Code Monkey home page Code Monkey logo

vite3-vue2's Introduction

项目模板简介

vite3 + vue2 + vant2 + scss + vue-router3 + axios

  • 不用 vue3 是因为 mpaas 只支持 vue2vue2ts不友好,所以还是用 js 吧。
  • 支持vue2vant库版本为vant2,其他更高版本都是支持vue3的,所以我们使用vant2
  • 已经配置了自动格式化,vue文件使用vetur,其他文件默认使用prettier。(必须在vs code打开才生效,且项目文件夹为工作目录!)
  • 为啥不用yarn or pnpm,主要是耀哥、源哥等几个大佬对前端不是很熟,就用npm就好,否则我会优先推荐使用pnpm

功能

  • vite3 构建工具
  • vue2 前端框架
  • vant2 移动端 UI 库
  • vue-router@3 路由管理
  • vuex3 状态管理库
  • 支持 setup + compostion api
  • 支持不完全的typescript
  • axios 请求库
  • scss css 预处理库
  • postcss 自动添加浏览器厂商前缀
  • 移动端适配 自动转换 px 为 vw
  • UI 自动分包导入
  • 多环境
  • 配置 alias
  • 配置 proxy

运行

  • 安装依赖 npm i
  • 运行 npm run dev
  • 打包 npm run build

参考链接

vue2 官方文档 vant2 风格指南

vite3-vue2's People

Contributors

codercup avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.