{"id":13762575,"url":"https://github.com/xiaoyann/webpack-best-practice","last_synced_at":"2025-05-10T15:31:34.547Z","repository":{"id":90268684,"uuid":"63151506","full_name":"xiaoyann/webpack-best-practice","owner":"xiaoyann","description":"🏁 Webpack 最佳实践，理解每个关键点，灵活应对各种工程需求，自定义构建方案","archived":false,"fork":false,"pushed_at":"2017-11-05T14:43:47.000Z","size":2106,"stargazers_count":366,"open_issues_count":1,"forks_count":142,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-11-16T21:33:02.766Z","etag":null,"topics":["webpack"],"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/xiaoyann.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-07-12T11:10:44.000Z","updated_at":"2024-04-03T01:07:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c5dc3f5-7c07-4f38-98d0-1feccbf0d18d","html_url":"https://github.com/xiaoyann/webpack-best-practice","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/xiaoyann%2Fwebpack-best-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoyann%2Fwebpack-best-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoyann%2Fwebpack-best-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoyann%2Fwebpack-best-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoyann","download_url":"https://codeload.github.com/xiaoyann/webpack-best-practice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253436493,"owners_count":21908345,"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":["webpack"],"created_at":"2024-08-03T14:00:48.694Z","updated_at":"2025-05-10T15:31:34.183Z","avatar_url":"https://github.com/xiaoyann.png","language":"JavaScript","funding_links":[],"categories":["Demo"],"sub_categories":[],"readme":"## About this repo\n\n这个项目本来是 2016 年写的一篇[《使用 webpack + react + redux + es6 开发组件化前端项目》](https://segmentfault.com/a/1190000005969488?_ea=2766439) 的代码示例，已保存到 [v1.0.0](https://github.com/xiaoyann/webpack-best-practice/tree/v1.0.0) 分支作为存档。\n\n现在 webpack 已经从当时的 v1.13.0 发展到了 v3.8.0，改进了不少，相关的配置方式也有所改变。这一年多无论是多页的 PC 端项目，还是移动端的单页应用，都是使用的 webpack。遇到过一些问题，也研究过一些解决方案，是应该好好总结一下了。\n\n本项目中的文章会围绕单页应用与多页应用展开，下面是对应的代码示例：\n\n* [SPA](./spa)\n* [MPA](./mpa)\n\n## Articles\n\n- [ ] [《从前端工程角度理解 Webpack》](./understanding-webpack.md)\n- [ ] 《如何灵活拆分 CSS 文件？》\n- [ ] 《如何快速实现一个简单却实用的数据 Mock 方案？》\n- [ ] 《多页应用的构建方案如何设计？》\n- [ ] 《如何提高大型项目的构建速度？》\n\n......\n\n## License\n\n![](https://camo.githubusercontent.com/02a9a61565702199bb1dd97754b0d635a3a95e71/687474703a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792d6e632d6e642f332e302f38387833312e706e67) \n\n该项目中所有文章采用 [署名-非商业性使用-禁止演绎 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-nd/4.0/) 进行许可 。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoyann%2Fwebpack-best-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoyann%2Fwebpack-best-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoyann%2Fwebpack-best-practice/lists"}