{"id":25689169,"url":"https://github.com/zcemycl/webpack-js-mpa-example","last_synced_at":"2026-05-02T10:44:19.817Z","repository":{"id":114282777,"uuid":"535450027","full_name":"zcemycl/webpack-js-mpa-example","owner":"zcemycl","description":"Example of javascript good practice. ","archived":false,"fork":false,"pushed_at":"2022-09-12T21:50:06.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-12T05:54:54.392Z","etag":null,"topics":["javascript","jest","mpa","mvc","puppeteer","webpack"],"latest_commit_sha":null,"homepage":"https://zcemycl.github.io/webpack-js-mpa-example","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zcemycl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-09-11T23:16:37.000Z","updated_at":"2022-09-12T22:18:29.000Z","dependencies_parsed_at":"2023-07-09T03:15:24.503Z","dependency_job_id":null,"html_url":"https://github.com/zcemycl/webpack-js-mpa-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zcemycl/webpack-js-mpa-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcemycl%2Fwebpack-js-mpa-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcemycl%2Fwebpack-js-mpa-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcemycl%2Fwebpack-js-mpa-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcemycl%2Fwebpack-js-mpa-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcemycl","download_url":"https://codeload.github.com/zcemycl/webpack-js-mpa-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcemycl%2Fwebpack-js-mpa-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271123372,"owners_count":24703215,"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-08-19T02:00:09.176Z","response_time":63,"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":["javascript","jest","mpa","mvc","puppeteer","webpack"],"created_at":"2025-02-24T22:00:37.462Z","updated_at":"2026-05-02T10:44:14.796Z","avatar_url":"https://github.com/zcemycl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi Pages Webpack ![example workflow](https://github.com/zcemycl/webpack-js-mpa-example/actions/workflows/main.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/zcemycl/webpack-js-mpa-example/badge.svg?branch=main)](https://coveralls.io/github/zcemycl/webpack-js-mpa-example?branch=main)\n- Each html should have its corresonding `bundle.js`. \n\n## Techniques\n1. Model View Controller (MVC)\n2. Jest for unit testing\n3. Puppeteer for e2e testing\n4. Webpack\n5. MultiPages Application\n6. Github action to deploy github pages\n\n## How to start?\n1. Create `webpack.config.js`, and edit it. \n2. Initialise npm. `npm init`\n3. Edit `package.json`. \n4. Install following packages. \n    ```\n    npm install --save-dev webpack webpack-cli lite-server\n    ```\n\n### References\n1. [Creating Multiple Bundles for Multiple Pages with Webpack - Ep. 7](https://www.youtube.com/watch?v=PcPzKMZzyqc)\n2. [SPAs vs MPAs/MVC - Are Single Page Apps always better?](https://www.youtube.com/watch?v=F_BYg2QGsC0)\n3. [Continuously Deploy Static Pages with Github Actions \u0026 gh-pages](https://javascript.plainenglish.io/continuously-deploy-static-pages-with-github-actions-gh-pages-207e4a009d1c)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcemycl%2Fwebpack-js-mpa-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcemycl%2Fwebpack-js-mpa-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcemycl%2Fwebpack-js-mpa-example/lists"}