Compiles and hot-reloads for development
Use vconsole for developmet
yarn serve -vconsole //启动vconsole手机模拟
Build images json info for server side
yarn tpl // 构建服务端所需图片信息,构建后存在img_json_info/
Compiles and minifies for production
Build and change images url
yarn build -cdn // 将会把图片全部引用为cdn地址(jpg|png|gif|jpeg)
Show analyze report after build
yarn build -report //Webpack包文件分析器
Run your end-to-end tests
- 全局scss变量,从assets/css/index.scss引入
- 图片压缩
- js,css压缩
- 打包代码分离,按需加载页面
- 大于10240开启gzip打包
- 删除无用css
- 集成vconsole-webpack-plugin
- 启动thread-loader
- api集中在api/文件夹下,this.$api.xxxx调用
- 默认会对重复请求进行过滤
- 网络超时和错误会弹窗(样式待调整)
- http请求的lang和access_token需自己配置
- 组件默认全部集成,可在main.ts中修改成按需加载
- 默认airbnb eslint