{"id":18974929,"url":"https://github.com/lfb/vue-cli3-template","last_synced_at":"2025-04-19T16:44:24.348Z","repository":{"id":39325912,"uuid":"220095229","full_name":"lfb/vue-cli3-template","owner":"lfb","description":"基于 Vue-cli3 搭建的脚手架项目模板","archived":false,"fork":false,"pushed_at":"2022-12-11T12:23:35.000Z","size":1523,"stargazers_count":30,"open_issues_count":27,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T10:23:45.254Z","etag":null,"topics":["babel","vue","vue-cli-template","vue-cli3","vue-cli3-template","vuejs","vuejs3","vuex","vw","webpack4"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lfb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T21:38:21.000Z","updated_at":"2024-01-08T00:52:32.000Z","dependencies_parsed_at":"2023-01-26T23:15:42.902Z","dependency_job_id":null,"html_url":"https://github.com/lfb/vue-cli3-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfb%2Fvue-cli3-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfb%2Fvue-cli3-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfb%2Fvue-cli3-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfb%2Fvue-cli3-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfb","download_url":"https://codeload.github.com/lfb/vue-cli3-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249223954,"owners_count":21232839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","vue","vue-cli-template","vue-cli3","vue-cli3-template","vuejs","vuejs3","vuex","vw","webpack4"],"created_at":"2024-11-08T15:16:44.383Z","updated_at":"2025-04-16T09:34:21.715Z","avatar_url":"https://github.com/lfb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 项目介绍\n基于 Vue-cli3 搭建的前端开发脚手架项目模板，主要包括有以下内容：Webpack4.x 性能调优配置，Vue.js 全家桶，移动端 vw 适配，单元测试等功能，仅供参考，欢迎大家围观指教！\n\n## 项目特点\n[![license](https://img.shields.io/badge/vue-2.6.10-brightgreen.svg)](https://github.com/vuejs/vue)\n[![license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/liangfengbo/vue-cli3-template/blob/master/LICENSE)\n\n## 特征\n- [x] Babel\n- [x] VueRouter\n- [x] Vuex\n- [x] CSS 预编译工具：Less\n- [x] HTTP 库：Axios\n- [x] 代码规范：eslint airbnb 规范\n- [x] 业务代码和第三方库区分打包：DllPlugin  \n- [x] 删除冗余代码：UglifyJsPlugin \n- [x] 开启 Gizp 压缩：compression-webpack-plugin \n- [x] 配置引入公共样式文件\n- [x] 使用 alias 简化路径\n- [x] vw 移动端适配\n- [x] 文件结构可视化：webpack-bundle-analyzer\n\n## 安装及快速开始\n```\n# 克隆项目\n$ git clone https://github.com/liangfengbo/vue-cli3-template\n\n# 进入目录\n$ cd vue-cli3-template\n\n# 安装依赖包\n$ yarn install\n\n# 启动项目\n$ yarn serve\n\n# eslint 检测\n$ yarn lint\n\n# eslint 修复\n$ yarnr lint --fix\n\n# 项目构建打包\n$ yarn run build\n\n# 项目构建打包分析\n$ yarn run build --report\n\n# 现代模式打包\n$ yarn build --modren\n```\n\n## FAQ\n1. 没有yarn环境，npm 可以吗？ \n\u003e 答：可以的，建议使用 yarn，yarn 比 npm 速度快，主要是安装版本统一。\n2. vue.config.js 里面的一些配置可以不需要吗？或者我新增一些配置可以吗？\n\u003e 答：可以的，你可以根据你的实际需要进行修改或增删配置的，比如你不需要 开启 Gizp 压缩，你在 vue.config.js 里面删除 开启gzip 内容即可。且 env 文件, 代理服务器的接口或转发路径，这些肯定需要改为你实际开发中的接口路径的。\n3. ... 更多问题请到 [Issues](https://github.com/liangfengbo/vue-cli3-template/issues)查阅，或者有问题请到 [Issues 提问](https://github.com/liangfengbo/vue-cli3-template/issues/new)，我会及时回复的，如果对你有帮助，请你点个 star 鼓励一下，谢谢！共勉！\n### MIT\n[@梁凤波](https://github.com/liangfengbo/vue-cli3-template/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfb%2Fvue-cli3-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfb%2Fvue-cli3-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfb%2Fvue-cli3-template/lists"}