{"id":13543728,"url":"https://github.com/ember-cli/ember-cli-inject-live-reload","last_synced_at":"2025-06-24T11:07:16.656Z","repository":{"id":19609231,"uuid":"22860404","full_name":"ember-cli/ember-cli-inject-live-reload","owner":"ember-cli","description":"Ember CLI plugin that injects live-reload script into HTML content","archived":false,"fork":false,"pushed_at":"2023-10-17T10:31:44.000Z","size":1347,"stargazers_count":23,"open_issues_count":26,"forks_count":54,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-12T12:05:00.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ember-cli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2014-08-12T01:19:56.000Z","updated_at":"2025-06-11T03:45:28.000Z","dependencies_parsed_at":"2024-01-16T17:02:33.604Z","dependency_job_id":"19d5887b-d51c-450b-8361-12a06b91d319","html_url":"https://github.com/ember-cli/ember-cli-inject-live-reload","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/ember-cli/ember-cli-inject-live-reload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-inject-live-reload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-inject-live-reload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-inject-live-reload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-inject-live-reload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ember-cli","download_url":"https://codeload.github.com/ember-cli/ember-cli-inject-live-reload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ember-cli%2Fember-cli-inject-live-reload/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260577241,"owners_count":23030690,"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-08-01T11:00:35.724Z","updated_at":"2025-06-24T11:07:16.617Z","avatar_url":"https://github.com/ember-cli.png","language":"JavaScript","readme":"# ember-cli-inject-live-reload\n\nPlugin for ember-cli that injects live-reload script into HTML content.\n\n## Overview\n\nThis plugin injects a script tag to load `ember-cli-live-reload.js` in the head of your application's html.\n\nThe contents of `ember-cli-live-reload.js` are dynamically generated to configure and inject `livereload.js`, which is served by Ember CLI courtesy of its `tiny-lr` dependency.\n\n`livereload.js` initiates a websocket connection back to Ember CLI. This allows Ember CLI to notify the browser to trigger a refresh after JavaScript or style changes.\n\n## Configuration\n\nFor vanilla Ember CLI apps, no configuration is required.\n\nThe following options are supported via command line arguments or the `.ember-cli` file:\n\n|Option|Purpose|\n|------|-------|\n| `liveReload` | Defaults to `true` during `ember serve`. Set to `false` to prevent the livereload script tag from being injected. |\n| `liveReloadPort` | Specifies the port that `ember-cli-live-reload.js` and `livereload.js` are loaded from  |\n| `liveReloadHost` | The host that `ember-cli-live-reload.js` will be loaded from |\n| `liveReloadPrefix` | The url prefix which will be prepended before `livereload.js` |\n\nThe following options are supported via the `.ember-cli` file:\n\n|Option|Purpose|\n|------|-------|\n| `liveReloadJsUrl` | The absolute URL used to load `livereload.js`. If specified, this overrides the `liveReloadPort` option.  |\n| `liveReloadOptions` | JavaScript object for LiveReload options. LiveReload supports a number of [options](https://github.com/livereload/livereload-js#options) for configuring websocket communication, including `https`, `host`, `port`, and others. See advanced example below. |\n\n## Advanced Example Configuration\n\n**NOTE:** Most apps will be fine with _no_ special configuration. Only use this sort of configuration if you have reason to override the default LiveReload websocket behavior. A use case for this is serving Ember CLI apps in development via a reverse proxy such as nginx.\n\n##### .ember-cli\n\n```javascript\n{\n  \"liveReloadPort\": 37531,\n\n  // This `liveReloadOptions` property becomes `window.LiveReloadOptions`\n  \"liveReloadOptions\": {\n    \"port\": 37631,\n    \"https\": true,\n    \"host\": \"your-hostname.dev\"\n  },\n\n  \"liveReloadJsUrl\": \"https://your-hostname.dev/livereload.js\"\n}\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fember-cli-inject-live-reload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fember-cli%2Fember-cli-inject-live-reload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fember-cli%2Fember-cli-inject-live-reload/lists"}