1 Star 2 Fork 1

nickro / vue2x-vant2x-mobile

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

基于 vue+vant 搭建 H5 通用架子

功能介绍

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

代码风格

运行

npm install 或者 yarn

npm run dev 默认开发模式

npm run build:testing 测试环境

npm run build 生产模式

注意事项

// config/env.development.js 本地开发环境

// http统一api请求前缀(开发模式下做跨域处理,一般清楚下不用做特殊处理)
baseApi='/api'
// config/env.testing.js 测试环境
// 这里修改为网站发布的目录如'./xxx',如果在根目录修改为'/' (如果这里配置不当会找不到路径导致白屏)
publicPath='/vueVantDemo/'

// config/env.production.js 生产环境
// 这里修改为网站发布的目录如'./xxx',如果在根目录修改为'/' (如果这里配置不当会找不到路径导致白屏)
publicPath='/vueVantDemo/'

// http统一api请求前缀(生产模式下填后端api地址)
baseApi='http://wwww.xxx.com/api'
MIT License Copyright (c) 2019 nickro丶 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.

简介

🐢【OK】H5框架,vue2x-vant2x-mobile移动端H5基础框架;Vue2x:https://cn.vuejs.org/。Vant2x:https://vant-contrib.gitee.io/vant/#/zh-CN/。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/nickro/vue2x-vant2x-mobile.git
git@gitee.com:nickro/vue2x-vant2x-mobile.git
nickro
vue2x-vant2x-mobile
vue2x-vant2x-mobile
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891