Skip to content
Vue preset for mobile projects
Branch: master
Clone or download
Latest commit d646f19 Apr 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
generator
template fix(docs): env files && readme Apr 12, 2019
.gitignore feat: first commit Apr 12, 2019
CHANGELOG.md
README.md docs(readme): title Apr 16, 2019
package.json chore(release): 0.2.0 Apr 12, 2019
preset.json
prompts.js feat: first commit Apr 12, 2019
yarn.lock feat: first commit Apr 12, 2019

README.md

Vue Project Preset Mobile

Vue 项目模板移动端 preset

Usage

vue create --preset savokiss/vue-preset-mobile <project-name>

注意修改上面的 <project-name> 为要创建的文件夹名称

Preset Config

preset.json

Features

  1. 集成commitizen规范提交message(中文提示信息),强制验证提交信息
  2. 集成standard-version自动生成changelog
  3. 使用postcss-px-to-viewport插件,vw适配移动端
  4. 预设三个 env 环境和三个 build scripts
  5. 使用compression-webpack-plugin进行资源 gzip 打包
  6. 使用vconsole-webpack-plugin集成 vconsole,生产环境默认关闭
  7. Service 层封装 axios
  8. 模块化 Vuex Store
You can’t perform that action at this time.