1 Star 0 Fork 86

王元石 / vue-vant-base

forked from Maybe / vue-vant-base 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

基于 vue-cli4+vant 搭建 H5 通用架子(支持微信公众号)

  • 已经上传vue3.0+ts分支
  • 如果有优化建议和bug请提issue

功能介绍

  • 支持 px 自动转 vw(rem暂时废弃) 并且忽略 node_modules 下三方包
  • 常用目录别名设置
  • 支持 scss 全局样式、变量、函数......
  • 支持 gzip 压缩
  • 支持本地 mock 模拟数据
  • 支持网站标题动态设置
  • axios 封装
  • cdn 配置加载
  • 支持多环境模式
  • 内置微信公众号 sdk
  • 支持 vant 组件库的按需加载
  • 支持 svg 雪碧图
  • 本项目已经实现vant-ui自带组件库的自适应, 正常开发直接写750px的设计稿像素

代码风格

文档

安装

git clone git@gitee.com:null_639_5368/vue-vant-base.git

或者

下载 zip

演示

http://null_639_5368.gitee.io/vue-vant-base

运行

npm install 或者 yarn

npm run dev:mock 模拟数据模式

npm run dev 默认开发模式

npm run build 生产模式

注意事项

// config/env.development.js

// http统一api请求前缀(开发模式下做跨域处理,一般清楚下不用做特殊处理)
baseApi='/api'
// config/env.production.js

// 这里修改为网站发布的目录如'./xxx',如果在根目录修改为'/' (如果这里配置不当会找不到路径导致白屏)
publicPath='/vue-vant-base'

// http统一api请求前缀(生产模式下填后端api地址)
baseApi='http://wwww.xxx.com/api'
MIT License Copyright (c) 2019 Maybe丶 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于 vue-cli4+vant 搭建 H5 通用架子(内置微信公众号) 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/wang-yuanshi/vue-vant-base.git
git@gitee.com:wang-yuanshi/vue-vant-base.git
wang-yuanshi
vue-vant-base
vue-vant-base
master

搜索帮助