{"id":13635702,"url":"https://github.com/easy-team/easywebpack","last_synced_at":"2025-12-29T23:36:55.692Z","repository":{"id":20405590,"uuid":"89727193","full_name":"easy-team/easywebpack","owner":"easy-team","description":" A Simple, Powerful Webpack Front-End Development Solution","archived":false,"fork":false,"pushed_at":"2024-05-27T12:29:28.000Z","size":4031,"stargazers_count":479,"open_issues_count":16,"forks_count":51,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-08-17T14:02:30.162Z","etag":null,"topics":["css-minify","easywebpack","hot-reload","image-mining","js-minify","less-loader","multi-page-application","react","sass-load","server-side-rendering","service-worker-precache","single-page-app","stylus","typescript","vue","webpack-configuration","webpack4","weex","wepback"],"latest_commit_sha":null,"homepage":"https://easyjs.cn/easywebpack","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/easy-team.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-28T17:02:12.000Z","updated_at":"2024-08-17T14:02:47.340Z","dependencies_parsed_at":"2024-08-17T14:02:40.027Z","dependency_job_id":"43a85fcd-1e79-4395-b33c-a1f8b9e0405f","html_url":"https://github.com/easy-team/easywebpack","commit_stats":{"total_commits":624,"total_committers":9,"mean_commits":69.33333333333333,"dds":0.0625,"last_synced_commit":"993eaa4e85b4d252bb3fea38b82c49efc73b739c"},"previous_names":["hubcarl/easy-webpack","hubcarl/easywebpack"],"tags_count":205,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easy-team","download_url":"https://codeload.github.com/easy-team/easywebpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223243994,"owners_count":17112562,"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":["css-minify","easywebpack","hot-reload","image-mining","js-minify","less-loader","multi-page-application","react","sass-load","server-side-rendering","service-worker-precache","single-page-app","stylus","typescript","vue","webpack-configuration","webpack4","weex","wepback"],"created_at":"2024-08-02T00:00:50.075Z","updated_at":"2025-12-29T23:36:55.665Z","avatar_url":"https://github.com/easy-team.png","language":"JavaScript","readme":"# easywebpack\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/easywebpack.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/easywebpack\n[travis-image]: https://travis-ci.org/easy-team/easywebpack.svg?branch=master\n[travis-url]: https://travis-ci.org/easy-team/easywebpack\n[codecov-image]: https://codecov.io/gh/easy-team/easywebpack/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/easy-team/easywebpack\n[david-image]: https://img.shields.io/david/easy-team/easywebpack.svg?style=flat-square\n[david-url]: https://david-dm.org/easy-team/easywebpack\n[snyk-image]: https://snyk.io/test/npm/easywebpack/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/easywebpack\n[download-image]: https://img.shields.io/npm/dm/easywebpack.svg?style=flat-square\n[download-url]: https://npmjs.org/package/easywebpack\n\n基于 Webpack 的前端构建工程化解决方案 [easywebpack](https://zhuanlan.zhihu.com/p/28322014)\n\n## 安装\n\n```bash\nnpm install easywebpack --save-dev\n```\n\n## 文档与总结\n\n- https://easyjs.cn\n- https://www.yuque.com/easy-team/easywebpack\n- https://zhuanlan.zhihu.com/easywebpack\n\n## 版本说明\n\n- easywebpack 5.x.x \u003e Webpack 5.x.x + Babel 7\n- easywebpack 4.x.x \u003e Webpack 4.x.x + Babel 6\n  - @easy-team/easywebpack 4.x.x \u003e Webpack 4.x.x + Babel 7\n- easywebpack 3.x.x \u003e Webpack 3.x.x + Babel 6\n\n## 基础功能\n\n![easywebpack](https://github.com/easy-team/easywebpack/blob/master/docs/images/easywebpack.png)\n\n- 支持服务端渲染, 前端渲染, 静态页面渲染三种构建方式\n- 支持单页面, 多页面服务端渲染构建模式\n- 默认支持 `dev`,`test`, `prod` 环境配置\n- 集成 `webpack-hot-middleware` 热更新实现, 支持 css inline 和 css extract 热更新\n- 支持 entry 原生配置和目录遍历自动构造 entry 功能\n- 支持自动根据后缀名构建 entry 文件，比如 `.vue` 和 `.jsx` 文件为入口文件\n- 支持 es6 class 继承方式编写 Webpack 配置\n- 支持 js/css/image 压缩, 内置支持 CDN 特性\n- 支持 css/sass/less/stylus， 支持css module 和 css extract 特性\n- 支持 loader 是否启用，合并，覆盖配置\n- 支持 plugin 是否启用，合并，覆盖配置\n- 支持 loader 和 plugin npm module 是否启用，按需安装\n- 支持 eslint, postcss 等特性\n- 支持 dll 构建解决方案\n- 支持 webpack typescript 构建\n- 提供 `easywebpack-cli` 和 `webpack-tool` 辅助工具。\n\n**easywebpack不与任何框架耦合， 你需要基于现有的解决方案使用或者扩展解决方案使用**\n\n## 工程化\n\n![easywebpack](https://github.com/easy-team/easywebpack/blob/master/docs/images/easywebpack.solution.png)\n\n### 解决方案\n\n基于 `easywebpack` 基础骨架，目前已扩展 `Vue` `React` `Weex`, `HTML`, `Javascript` 五种解决方案：\n- [easywebpack-js](https://github.com/easy-team/easywebpack-js.git)  支持纯 javascript 文件构建模式\n- [easywebpack-vue](https://github.com/easy-team/easywebpack-vue.git)  支持 Vue 纯前端构建和Node端构建模式\n- [easywebpack-react](https://github.com/easy-team/easywebpack-react.git) 支持 React 纯前端构建和Node端构建模式\n- [easywebpack-weex](https://github.com/easy-team/easywebpack-weex.git) 支持 Native 和 Web 构建模式\n- [easywebpack-html](https://github.com/easy-team/easywebpack-html.git) 支持 HTML静态页面模式，支持 nunjucks 引擎\n\n## 使用\n\n```js\n// ${root}/webpack.config.js\nconst easywebpack = requier('easywebpack-react');\nconst env = process.env.BUILD_ENV; // support dev/test/prod\nconst webpackConfig = easywebpack.getWebpackConfig({\n  env,\n  target: 'web',\n  entry: {\n    index: 'src/app.js'\n  }\n});\nmodule.exports = webpackConfig;\n```\n\n### 命令行工具\n\n[easywebpack-cli](https://github.com/easy-team/easywebpack-cli.git) 基于 easywebpack 前端工程化解决方案构建的脚手架命令行工具。\n\n- 支持 Vue/React/Weex/HTML 框架项目的初始化，包括 SPA 应用，多页面应用，Server Side Render(Egg)项目\n- 支持命令行 Webpack 构建，包括 Webpack 配置信息打印(调试)和获取\n- 提供构建结果 UI 导航展现和访问。\n\n### 项目骨架\n\n- [egg-vue-webpack-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate) Egg + Vue 服务端渲染骨架\n\n- [egg-vue-typescript-boilerplate](https://github.com/easy-team/egg-vue-typescript-boilerplate) Egg + Vue + TypeScript + Webpack 服务端渲染骨架\n\n- [egg-react-webpack-boilerplate](https://github.com/easy-team/egg-react-webpack-boilerplate) Egg + React 服务端渲染骨架\n\n- [egg-react-typescript-boilerplate](https://github.com/easy-team/egg-react-typescript-boilerplate) Egg + React + TypeScript + Webpack 服务端渲染骨架\n\n**以上骨架可以通过 easywebpack-cli 初始化**\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":["Reference","JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasy-team%2Feasywebpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack/lists"}