{"id":15138764,"url":"https://github.com/easy-team/easywebpack-multiple-html-boilerplate","last_synced_at":"2025-10-23T15:31:31.335Z","repository":{"id":57218986,"uuid":"112085914","full_name":"easy-team/easywebpack-multiple-html-boilerplate","owner":"easy-team","description":"HTML静态多页面Webpack构建工程化解决方案骨架","archived":false,"fork":false,"pushed_at":"2018-11-09T03:47:43.000Z","size":73,"stargazers_count":13,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T19:11:33.268Z","etag":null,"topics":["easywebpack","easywebpack-html","html-webpack","html-webpack-template","webpack"],"latest_commit_sha":null,"homepage":null,"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":"History.md","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":"2017-11-26T13:44:32.000Z","updated_at":"2021-12-17T18:28:50.000Z","dependencies_parsed_at":"2022-08-29T02:11:52.696Z","dependency_job_id":null,"html_url":"https://github.com/easy-team/easywebpack-multiple-html-boilerplate","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-multiple-html-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-multiple-html-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-multiple-html-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easy-team%2Feasywebpack-multiple-html-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easy-team","download_url":"https://codeload.github.com/easy-team/easywebpack-multiple-html-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237852310,"owners_count":19376653,"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":["easywebpack","easywebpack-html","html-webpack","html-webpack-template","webpack"],"created_at":"2024-09-26T07:44:25.584Z","updated_at":"2025-10-23T15:31:30.964Z","avatar_url":"https://github.com/easy-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easywebpack-multiple-html-boilerplate\n\nHTML静态多页面Webpack构建工程化解决方案骨架\n\n## 特性\n\n- 支持 HTML 静态多页面构建\n- 支持 nunjucks 模板静态多页面构建\n- 支持 Webpack 构建自动刷新功能\n- 支持 babel, es6, postcss, eslint等特性\n- 支持 css, sass, less, styus \n- 支持构建结果UI展示\n- 支持独立HTML模板和全局HTML模版\n- 支持 [easywebpack-cli](https://github.com/hubcarl/easywebpack-cli) 创建项目和构建\n\n更多特性请见 [基于 Webpack 的前端构建工程化解决方案](https://github.com/hubcarl/easywebpack)\n\n# 版本\n\n- easywebpack-html ^4.x.x \u003e webpack 4.x.x \n- easywebpack-html ^2.x.x \u003e webpack 3.x.x \n\n## 安装\n\n```bash\nnpm install\n```\n\n```bash\nnpm install easywebpack-cli -g\n```\n\n## 运行\n\n\n```bash\nnpm start \n\n// or\neasy start\n\n// or\nnode build\n```\n\n\n## 编译\n\n```bash\nnpm run build\n\n// or\neasy build prod \n\n// or\nnode build\n```\n\n## HTML模板\n\n- 独立模板, Entry目录下面包含同名的HTML页面\n- 全局模板(entry.template), 没有独立模板时,将采用全局模板.\n\nHTML构建时, 首先取独立模板,如果文件存在,则使用独立模板, 否则取全局模板.\n\n## nunjucks\n\nnunjucks loader 默认是禁用， 你可以通过如下方式开启：\n\n```js\n// webpack.config.js\nmodule.exports = {\n  loaders: {\n    nunjucks: {\n      options: {\n        searchPaths: ['./widget', './test']  // nunjucks 模板查找目录\n      }\n    }\n  },\n}\n```\n\n## HTTP Proxy \n\nuse [koa-proxy](https://github.com/popomore/koa-proxy) plugin proxy http request:\n\n```js\n// webpack.config.js\nmodule.exports = {\n  proxy: {\n    host:  'http://localhost:8888',   \n    match: /\\/debug/\n  },\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack-multiple-html-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasy-team%2Feasywebpack-multiple-html-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-team%2Feasywebpack-multiple-html-boilerplate/lists"}