Skip to content

baiyunshenghaishang/vue-cli-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-cli 的 preset 配置

配置注意点

generator只能在git repo中有效,本地文件调试无效 复制文件目录名使用template好像会有缓存,改用rootFile

preset

{
  "useConfigFiles": true,
  "useTaobaoRegistry": true,
  "router": true,
  "routerHistoryMode": false,
  "vuex": true,
  "cssPreprocessor": "sass",
  "plugins": {
    "@vue/cli-plugin-babel": {},
    "@vue/cli-plugin-eslint": {
      "config": "prettier",
      "lintOn": ["save", "commit"]
    }
  }
}

prettier

增加了格式化文件

browserlistsrc

修改了 browserlistsrc,主要是增加安卓和 ios,但是好像无法覆盖

vue.config.js

配置自动打开浏览器

About

vue-cli的preset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published