{"id":15209112,"url":"https://github.com/biyuqi/webpack-seed","last_synced_at":"2025-10-03T16:10:32.692Z","repository":{"id":33467926,"uuid":"151372531","full_name":"BiYuqi/webpack-seed","owner":"BiYuqi","description":":rocket: A Multi-Page Application base on webpack and babel. webpack搭建基于ES6,支持模板的多页面项目","archived":false,"fork":false,"pushed_at":"2022-12-13T22:54:03.000Z","size":3064,"stargazers_count":115,"open_issues_count":21,"forks_count":40,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T07:42:37.520Z","etag":null,"topics":["axios","babel","babel7","ejs","ejs-loader","handlebars","handlebarsjs","javascript","mpa","multiple-entrance","optional-chaining","sass","webpack","webpack-multi-page","webpack-multipage","webpack-seed","webpack4"],"latest_commit_sha":null,"homepage":"https://biyuqi.github.io/webpack-seed/","language":"EJS","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/BiYuqi.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":"2018-10-03T06:52:24.000Z","updated_at":"2025-03-19T01:57:54.000Z","dependencies_parsed_at":"2023-01-15T01:15:59.468Z","dependency_job_id":null,"html_url":"https://github.com/BiYuqi/webpack-seed","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"purl":"pkg:github/BiYuqi/webpack-seed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fwebpack-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fwebpack-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fwebpack-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fwebpack-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BiYuqi","download_url":"https://codeload.github.com/BiYuqi/webpack-seed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BiYuqi%2Fwebpack-seed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278188476,"owners_count":25944946,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["axios","babel","babel7","ejs","ejs-loader","handlebars","handlebarsjs","javascript","mpa","multiple-entrance","optional-chaining","sass","webpack","webpack-multi-page","webpack-multipage","webpack-seed","webpack4"],"created_at":"2024-09-28T07:21:23.837Z","updated_at":"2025-10-03T16:10:31.406Z","avatar_url":"https://github.com/BiYuqi.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/BiYuqi/webpack-seed\"\u003e\n      \u003cimg src=\"https://github.com/BiYuqi/webpack-seed/blob/master/src/common/assets/image/webpack-seed.png\" width=\"300\" alt=\"Webpack\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://webpack.js.org/\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/webpack-4.46.0-brightgreen.svg\" alt=\"Webpack\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://babeljs.io/\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/badge/babel-7.12.10-brightgreen.svg\" alt=\"babel\"\u003e\n\t\u003c/a\u003e\n  \u003ca href=\"https://github.com/BiYuqi/webpack-seed/tree/gh-pages\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/BiYuqi/webpack-seed.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/BiYuqi/webpack-seed/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\n  \u003c/a\u003e\n\n\u003c/p\u003e\n\n## 前言\n\n开箱即用的多页面模板, 基于 webpack4 babel7 开发可复用的现代化网站, 解决非 SPA 应用, html 复用, 模块化开发编译等问题.\n\n**如果感兴趣该项目, 请点个 [star](https://github.com/BiYuqi/webpack-seed/stargazers)**\n\n**及时关注项目更新, 请点个 [watch](https://github.com/BiYuqi/webpack-seed/watchers)**\n\n**项目 bug, 请提 [issue](https://github.com/BiYuqi/webpack-seed/issues)**\n\n- [Online demo](https://biyuqi.github.io/webpack-seed/)\n\n- [旧版分支 1.x](https://github.com/BiYuqi/webpack-seed/tree/v1.x-version)\n\n## 新版本 2.x\n\n- [x] 使用[`webpack-chain`](https://github.com/neutrinojs/webpack-chain)进行构建程序\n- [x] 重构整体页面配置, 包括模板的创建, 静态第三方资源的引入方式\n- [x] 全新的变量管理方式, 类 vue-cli 脚手架的配置, 自动读取根目录的环境变量文件`.env[mode]`\n- [x] 支持在`ws.config.js`进行全局的配置打包等配置, 具体可参考 vue.config.js 配置方式\n\n## 特性\n\n- 支持前后端分离开发\n- 配置完整的打包方案\n- 支持本地开发热更新\n- EJS 模板编译\n- 图片处理压缩\n- 内置 Sass 开发环境\n- 集成代码风格校验 Eslint\n- 内置字体图标库 500+, 开箱即用\n- 支持 ES6 语法，编译生成生产代码\n- 支持开发(生产)环境变量注入(基于.env.[mode]文件,类似于 Vue-CLI 脚手架提供的方案)\n- 通用的构建方式, 基本是开箱即用. 同时支持通过`ws.config.js`进行灵活的构建配置\n- ...\n\n注：本项目引入了 jquery, bootstrap，该文件配置可自动加载第三方脚本作为链接使用(script 标签的形式引入), 如果需要,在 src/common/lib/index.js 配置即可\n\n## 项目结构\n\n```sh\nwebpack-seed\n├── dist # 输出目录\n├── bin # 创建页面命令\n├── build # webpack构建目录\n├── src # 项目主目录\n├── .editorconfig\n├── .env.github # 环境变量配置\n├── .env.prod # 环境变量配置\n├── .env.staging # 环境变量配置\n├── .eslintignore\n├── .eslintrc.js\n├── .gitignore\n├── .npmrc # npm源\n├── .postcssrc.js\n├── .prettierignore\n├── .prettierrc.js\n├── .travis.yml # CI当前项目demo部署\n├── favicon.ico\n├── LICENSE\n├── README.md\n├── babel.config.js # babel配置\n├── package.json\n├── ws.config.js # 可通过该配置改webpack等配置\n└── yarn.lock\n```\n\n## 输出\n\n```sh\ndist\n├── css\n├── favicon.ico\n├── fonts\n├── html\n├── image\n├── index.html\n├── js\n└── libs\n```\n\n## 使用\n\n**下载使用**\n\n```sh\ngit clone https://github.com/BiYuqi/webpack-seed.git\n\ncd webpack-seed\n\nyarn install\n```\n\n**本地开发(dev)**\n\n```sh\nyarn run serve\n```\n\n**打包(build)**\n\n```sh\nyarn run build\n```\n\n**配置文件**\n\n```sh\n# 具体配置和vue.config.js一致\nws.config.js\n```\n\n**环境变量**\n\n```sh\n# 具体配置和vue-cli配置方式一致\n.env[mode]\n```\n\n## TODO\n\n- [ ] 测试框架默认 Jest\n- [ ] 编写创建项目的脚手架, eslint, jest, 等配置可选\n- [ ] 优化 webpack 配置流程, 尽量黑盒化, 约定大于配置\n- [ ] 文档补充\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiyuqi%2Fwebpack-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiyuqi%2Fwebpack-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiyuqi%2Fwebpack-seed/lists"}