{"id":19380845,"url":"https://github.com/module-federation/fmr","last_synced_at":"2025-07-01T23:06:03.346Z","repository":{"id":38352413,"uuid":"350448931","full_name":"module-federation/fmr","owner":"module-federation","description":"Federated Module Reloading for DEV mode","archived":false,"fork":false,"pushed_at":"2023-12-15T20:22:59.000Z","size":314,"stargazers_count":44,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-13T22:24:23.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/module-federation.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}},"created_at":"2021-03-22T18:29:36.000Z","updated_at":"2023-07-25T10:57:28.000Z","dependencies_parsed_at":"2024-04-15T23:20:54.192Z","dependency_job_id":"498f748d-29ba-4b52-a9a3-f0a4dc95bf65","html_url":"https://github.com/module-federation/fmr","commit_stats":{"total_commits":85,"total_committers":26,"mean_commits":3.269230769230769,"dds":0.5647058823529412,"last_synced_commit":"20207c914ea4f4d354f4c2b674b7fd356c4ca119"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/module-federation/fmr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/module-federation%2Ffmr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/module-federation%2Ffmr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/module-federation%2Ffmr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/module-federation%2Ffmr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/module-federation","download_url":"https://codeload.github.com/module-federation/fmr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/module-federation%2Ffmr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260516783,"owners_count":23020917,"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":[],"created_at":"2024-11-10T09:14:59.135Z","updated_at":"2025-07-01T23:06:03.312Z","avatar_url":"https://github.com/module-federation.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WIP: Federated Module Reload\n\n[![CI][ci]][ci-url]\n[![node][node]][node-url]\n\nLiveReload when running `webpack --watch`\n\n## Installation\n\nInstall the package\n\n```sh\nnpm install --save-dev webpack-livereload-plugin\n```\n\nAdd the plugin to your webpack config\n\n```js\n// webpack.config.js\n\nvar LiveReloadPlugin = require('webpack-livereload-plugin');\n\nmodule.exports = {\n  plugins: [\n    new LiveReloadPlugin(options)\n  ]\n}\n```\n\nAdd a script tag to your page pointed at the livereload server\n\n```html\n\u003cscript src=\"http://localhost:35729/livereload.js\"\u003e\u003c/script\u003e\n```\n\n\n## Options\n\n- `protocol` - (Default: protocol of the page, either `http` or `https`) Protocol for livereload `\u003cscript\u003e` src attribute value\n- `port` - (Default: 35729) The desired port for the livereload server. If you define port 0, an available port will be searched for, starting from 35729.\n- `hostname` - (Default: hostname of the page, like `localhost` or `10.0.2.2`) The desired hostname for the appended\n               `\u003cscript\u003e` (if present) to point to\n- `appendScriptTag` - (Default: false) Append livereload `\u003cscript\u003e`\n                   automatically to `\u003chead\u003e`.\n- `ignore` - (Default: `null`) RegExp of files to ignore. Null value means\n  ignore nothing. It is also possible to define an array and use multiple [anymatch](https://github.com/micromatch/anymatch) patterns.\n- `delay` - (Default: `0`) amount of milliseconds by which to delay the live reload (in case build takes longer)\n- `useSourceHash` - (Default: `false`) create hash for each file source and only notify livereload if hash has changed\n\n## Why?\n\nYes, there's already `webpack-dev-server` that handles live reloading\nand more complex scenarios. This project aims to solve the case where\nyou want assets served by your app server, but still want reloads\ntriggered from webpack's build pipeline.\n\n## HTTPS\n\nIf you set `key`, `cert`, or `pfx` options, they'll get passed through to\n[tiny-lr as options](https://github.com/mklabs/tiny-lr#options) and it will\nserve over HTTPS. You'll also also set `protocol` to `https`.\n\n## FAQ\n\n##### Webpack always generates js and css together\n\nIf your webpack is always generating js and css files together you could set \n`useSourceHash` to `true` to generate a hash for each changed asset and it \nshould prevent multiple reloads. \n\nAlternatively if this slows your build process you could set `liveCSS` \nand `liveImg` to `false` to prevent multiple reloads.\n\n\n[node]: https://img.shields.io/node/v/webpack-livereload-plugin.svg\n[node-url]: https://nodejs.org\n[ci]: https://github.com/statianzo/webpack-livereload-plugin/actions/workflows/ci.yml/badge.svg?branch=master\n[ci-url]: https://github.com/statianzo/webpack-livereload-plugin/actions/workflows/ci.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodule-federation%2Ffmr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodule-federation%2Ffmr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodule-federation%2Ffmr/lists"}