{"id":14976340,"url":"https://github.com/zorigitano/multipage-webpack-plugin","last_synced_at":"2026-02-20T06:01:13.409Z","repository":{"id":57305268,"uuid":"70258160","full_name":"zorigitano/multipage-webpack-plugin","owner":"zorigitano","description":"A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial","archived":false,"fork":false,"pushed_at":"2017-07-07T03:32:48.000Z","size":267,"stargazers_count":169,"open_issues_count":8,"forks_count":15,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-10-27T20:39:59.000Z","etag":null,"topics":["multipage","webpack","webpack-plugin","webpack2","webpackplugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zorigitano.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}},"created_at":"2016-10-07T15:15:46.000Z","updated_at":"2025-08-18T03:21:36.000Z","dependencies_parsed_at":"2022-09-26T22:20:52.004Z","dependency_job_id":null,"html_url":"https://github.com/zorigitano/multipage-webpack-plugin","commit_stats":null,"previous_names":["mutualofomaha/multipage-webpack-plugin"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/zorigitano/multipage-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zorigitano%2Fmultipage-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zorigitano%2Fmultipage-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zorigitano%2Fmultipage-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zorigitano%2Fmultipage-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zorigitano","download_url":"https://codeload.github.com/zorigitano/multipage-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zorigitano%2Fmultipage-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29642903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T05:21:04.652Z","status":"ssl_error","status_checked_at":"2026-02-20T05:21:04.238Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["multipage","webpack","webpack-plugin","webpack2","webpackplugin"],"created_at":"2024-09-24T13:53:44.928Z","updated_at":"2026-02-20T06:01:13.390Z","avatar_url":"https://github.com/zorigitano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multipage-webpack-plugin\n[![Build Status](https://travis-ci.org/mutualofomaha/multipage-webpack-plugin.svg?branch=master)](https://travis-ci.org/mutualofomaha/multipage-webpack-plugin)\n[![Coverage Status](https://coveralls.io/repos/github/mutualofomaha/multipage-webpack-plugin/badge.svg?branch=master)](https://coveralls.io/github/mutualofomaha/multipage-webpack-plugin?branch=master)\n\nwebpack plugin that allows for trivial configuration for multi page web applications\n\n## Problem\n\nCurrently to architect a webpack configuration for multi page web applications, there are many requirements for managing all assets and entry points. \n\n- In a multipage application every rendered page corresponds to a webpack entry point.\n- Each entry point will have some sort of `index.html` file _or_ a MVC framework specific server template (partial) which renders to html content.\n  - May have different paths, may not even be in the same directory as the entry point.\n  - Should contain _just_ the assets bundled for that entry.\n  - You would have to create essentially a `html-webpack-plugin` for each entry however posses extra configuration challenges:\n  \n  An example for a Laravel 4 Application using Twig Templates\n\n  ```\n  const templatesFn = (modules, twigRoot, assetsRoot, shared) =\u003e {\n    return Object.keys(modules).map((entryName) =\u003e {\n      return new HtmlWebpackPlugin({\n        template: `${assetsRoot}/webpack.template.hbs`, //path.resolve(__dirname, \"./assets/webpack.template.hbs\"),\n        filename: `${twigRoot}/webpack-bundles/${entryName}.twig`,\n        chunks: ['inline', 'vendors', entryName, `${shared}`]\n      })\n    });\n  } \n  ```\n\n## Development\n\n- `npm install`\n\n\n### Single Test Build\n- `npm t` \n\n\n### Test Watch\n- `npm run test:watch`\n\n## Usage [WIP]\n\n### Plugin Options [WIP]\n`sharedChunkName`\n`vendorChunkName`\n`inlineChunkName`\n`templateFilename`\n`templatePath`\n`htmlTemplatePath`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzorigitano%2Fmultipage-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzorigitano%2Fmultipage-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzorigitano%2Fmultipage-webpack-plugin/lists"}