{"id":15590601,"url":"https://github.com/przemek-nowicki/multi-page-app-with-react","last_synced_at":"2025-04-14T19:10:56.176Z","repository":{"id":36729626,"uuid":"179313510","full_name":"przemek-nowicki/multi-page-app-with-react","owner":"przemek-nowicki","description":":wrench: A lightweight, flexible webpack setup with React for multi page application development","archived":false,"fork":false,"pushed_at":"2023-01-01T06:00:39.000Z","size":2362,"stargazers_count":96,"open_issues_count":26,"forks_count":36,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T07:34:14.320Z","etag":null,"topics":["mpa","multi-page-application","multi-page-boilerplate","react","webpack","webpack-boilerplate","webpack4"],"latest_commit_sha":null,"homepage":"","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/przemek-nowicki.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}},"created_at":"2019-04-03T15:00:45.000Z","updated_at":"2024-08-14T03:45:01.000Z","dependencies_parsed_at":"2023-01-17T04:21:29.158Z","dependency_job_id":null,"html_url":"https://github.com/przemek-nowicki/multi-page-app-with-react","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/przemek-nowicki%2Fmulti-page-app-with-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/przemek-nowicki%2Fmulti-page-app-with-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/przemek-nowicki%2Fmulti-page-app-with-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/przemek-nowicki%2Fmulti-page-app-with-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/przemek-nowicki","download_url":"https://codeload.github.com/przemek-nowicki/multi-page-app-with-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943456,"owners_count":21186958,"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":["mpa","multi-page-application","multi-page-boilerplate","react","webpack","webpack-boilerplate","webpack4"],"created_at":"2024-10-02T23:23:09.924Z","updated_at":"2025-04-14T19:10:56.152Z","avatar_url":"https://github.com/przemek-nowicki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi Page App with React\n\nA lightweight, flexible Webpack setup with React for multi page application development. \u003cbr /\u003e\n\nYou should consider this setup when you want to use React for some sections of your page(s), but you don't want to make it Single Page Application (SPA) with only a `\u003cdiv id=\"app\"\u003e` in the body tag.\n\nHere's a code sample to illustrate this concept for an example static page with several React components:\n![picture alt](http://assets.miwu.pl/mpa-with-react-example.png \"MPA with React example\")\n\nA  basic write up of this setup can be found on this [Medium post](https://itnext.io/building-multi-page-application-with-react-f5a338489694).\n\n**Notice:** the latest code base includes the following updates: \n- webpack bundles with hashed filenames\n- code linter (with Airbnb style guide)\n- enabled CSS modules (added example css styles)\n- minimize webpack bundles with TerserPlugin (i.e. js code minification)\n- file loader to resolve imports on fonts and images (added example product image)\n\n\n## Quick Start\n\ninstall dependencies\n```\n$ npm install\n```\n\n## Development \u0026 Build\n\n**dev**\n\n```\n$ npm start\n```\n***start** script runs server in development mode with hot module replacement and open the browser after server had been started.*\n\n**build**\n\n```\n$ npm run build\n```\n\n***build** script runs in production mode to improve load time (i.e. minified bundles, lighter weight source maps etc)*\n\n**linting**\n\n```\n$ npm run lint\n```\n\n***lint** script runs linter to check for lint errors in src directory*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprzemek-nowicki%2Fmulti-page-app-with-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprzemek-nowicki%2Fmulti-page-app-with-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprzemek-nowicki%2Fmulti-page-app-with-react/lists"}