{"id":14976279,"url":"https://github.com/webpack/hot-node-example","last_synced_at":"2025-10-19T11:30:30.517Z","repository":{"id":32360222,"uuid":"35936177","full_name":"webpack/hot-node-example","owner":"webpack","description":"Example for HMR in a node.js process","archived":true,"fork":false,"pushed_at":"2015-05-20T08:38:58.000Z","size":85,"stargazers_count":54,"open_issues_count":0,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T14:57:58.704Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webpack.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":"2015-05-20T08:38:49.000Z","updated_at":"2024-08-15T13:42:35.000Z","dependencies_parsed_at":"2022-08-25T17:11:09.983Z","dependency_job_id":null,"html_url":"https://github.com/webpack/hot-node-example","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/webpack%2Fhot-node-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fhot-node-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fhot-node-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fhot-node-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpack","download_url":"https://codeload.github.com/webpack/hot-node-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116450,"owners_count":19258256,"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-09-24T13:53:37.268Z","updated_at":"2025-10-19T11:30:25.226Z","avatar_url":"https://github.com/webpack.png","language":"JavaScript","readme":"# hot-node-example\n\nExample for very simple Hot Module Replacement with webpack.\n\n## Running the app with HMR\n\n```\nnpm install\nnpm run hot\n\n# in a new terminal\nnpm start\n```\n\n## Running the app without HMR\n\n```\nnpm run build\nnpm start\n```\n\n## Real app\n\nIn a real application you should do this things too:\n\n* Put any normal node.js module in `externals` config\n  * For performance\n  * Not all node.js modules can be bundled\n  * Specify `output.libraryTarget: \"commonjs2\"` to default to import by require.\n* Use `webpack/hot/signal` instead of polling\n  * Send a signal to the process to trigger the HMR\n* Enable SourceMaps and source-map-support for node.js\n* Handle the case when a hot update fails, i. e. because of errors or not accepted modules\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fhot-node-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpack%2Fhot-node-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fhot-node-example/lists"}