vue spa starter
1.0.0
This system has been migrated to vue-cli-service build and can be used out of the box.
suggestion
yarn # npm i
yarn run dev # 默认入口为src/pages/*/index.js.env # 默认配置
.env.local # gitignore,会merge .env
.env.prod
.env.prod.local # gitignore,会merge .env.prod According to the general specification type
# type: 提交类型 scope: 变动范围 type为必需,scope选填
# git commit -m '${type}(${scope}): some message'
git commit -m ' feat: 增加 xxx 功能'
git commit -m ' fix: 修复 xxx 功能'
git commit -m ' fix(UserController): [bug005]修复用户权限问题' Modified by .eslintrc.js
.vue files and related folders are named in all lowercase, separated by - , for example: button-group babel-polyfill or transform-runtime to solve the problem.~/src/styles/element-theme.scss~/src/styles/${THEME}/app.scss~/src/styles/${THEME}/variables.scss . Component styles unify the theme through defined variables.https://www.iconfont.cn/ (currently in the github/evanliu2968 account)~/src/components/common/vue-echartscomponents/common/file-upload ie10+ FormData upload, ie9 iframe uploadhttps://blog.csdn.net/baidu_22254181/article/details/82594072~/src/libs/auth.js~vue.config.js/transpileDependenciesnew webpack.ContextReplacementPlugin(/moment[\/]locale$/, /^./(zh-cn)$/) removes other language packages (compressed package is more than 300 kb)echarts (source code 2M+, compressed package 600kb). Use js in HTML to avoid packaging every time.nginx configuration address: cd /etc/nginx/vhost After modification, you need to restart nginx and use the docker command to restart and reload the configuration file: docker exec nginx nginx -s reload Check the configuration file: docker exec nginx nginx -t