Giter Site home page Giter Site logo

username9565 / vue-h5-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sunniejs/vue-h5-template

0.0 1.0 0.0 530 KB

:tada:vue搭建移动端开发,基于vue-cli4.0+webpack 4+vant ui + sass+ rem适配方案+axios封装,构建手机端模板脚手架

Home Page: https://solui.cn/vue-h5-template/#/

JavaScript 69.41% HTML 6.05% Vue 24.34% CSS 0.20%

vue-h5-template's Introduction

vue-h5-template

基于vue-cli3.0+webpack 4+vant ui + sass+ rem适配方案+axios封装,构建手机端模板脚手架

demo建议手机端查看

介绍

关于项目介绍

  • Vue-cli4
  • VantUI组件按需加载
  • Sass
  • Webpack 4
  • Vuex
  • Axios封装
  • rem适配方案
  • 多环境配置
  • 生产环境cdn优化首屏加速
  • babel低版本浏览器兼容
  • Eslint+Pettier统一开发规范

多环境

之前写过一个多环境的方案,是基于vue-cli2.0的 vue多环境配置方案-传送门 最近新的项目采用了vuecli3.0开始了一番折腾

这里参考了vue-admin-template 基本思路不变 在src的文件里新建config 根据不同的环境去引用不同的配置文件,不同的是在根目录下有三个设置环境变量的文件 这里可以参考vue-admin-template

rem适配方案

还是那句话,用vw还是用rem,这是个问题?

选用rem的原因是因为vant直接给到了这个适配方案,个人也比较喜欢这个方案

vant

总结

因为项目刚刚构建起来,后面还会持续更新,实际使用过程中一定还有很多问题,如果文章中有错误希望能够被指正,一起成长

关于我

获取更多技术相关文章,关注公众号”前端女塾“。

回复加群,即可加入”前端仙女群“

扫描添加下方的微信并备注 Sol 加交流群,交流学习,及时获取代码最新动态。

如果对你有帮助送我一颗小星星(づ ̄3 ̄)づ╭❤~

vue-h5-template's People

Contributors

sillence avatar sunniejs avatar dependabot[bot] avatar

Watchers

James Cloos 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.