1.0.1 • Published 4 years ago

json-web-test1 v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

frame-mobile-vue

基于Vue的移动端框架

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

全局样式重置

normalize.css 参考:https://github.com/necolas/normalize.css

雪碧图

webpack-spritesmith 为减少HTTP请求,小图标使用雪碧图整理成一张图片,雪碧图通常是原始大小,如果需要自适应(一般应用到雪碧图的图片无需自适应), 需要设置:background-size: 2.4rem 42.9rem; 参考:https://www.cnblogs.com/xuechenlei/p/5944209.html

解决移动端适配问题

lib-flexible + px2rem-loader + calc()

loading问题

1、全局loading

2、局部loading

ui框架

Mint UI a、有优质的维护团队 b、支持按需引入 参考:http://mint-ui.github.io/#!/zh-cn

mock

开发时模拟假数据

webpack-api-mocker

参考:https://github.com/jaywcjlove/webpack-api-mocker Features: 🔥 Built in support for hot Mocker file replacement. 🚀 Quickly and easily configure the API via JSON. 🌱 Mock API proxying made simple.

按需加载