{"id":23854979,"url":"https://github.com/ara-framework/webpack-nova-consumer","last_synced_at":"2025-09-08T02:31:06.762Z","repository":{"id":48313813,"uuid":"208079398","full_name":"ara-framework/webpack-nova-consumer","owner":"ara-framework","description":"Live reloading and lazy loading on nova consumers","archived":false,"fork":false,"pushed_at":"2021-08-02T06:00:11.000Z","size":15,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T23:06:55.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@ara/webpack-nova-consumer","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/ara-framework.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":"2019-09-12T15:08:13.000Z","updated_at":"2020-08-21T04:57:42.000Z","dependencies_parsed_at":"2022-08-20T08:40:11.511Z","dependency_job_id":null,"html_url":"https://github.com/ara-framework/webpack-nova-consumer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fwebpack-nova-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fwebpack-nova-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fwebpack-nova-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fwebpack-nova-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ara-framework","download_url":"https://codeload.github.com/ara-framework/webpack-nova-consumer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232272657,"owners_count":18497858,"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":"2025-01-03T00:19:33.989Z","updated_at":"2025-01-03T00:19:34.716Z","avatar_url":"https://github.com/ara-framework.png","language":"JavaScript","readme":"# webpack-nova-consumer\n\nThis webpack plugin enables to add external links from Nova bundles inside the consumer pages using the `html-webpack-plugin` hooks.\n\n\n## Install\n\n```shell\nnpm i --save-dev @ara/webpack-nova-consumer\n```\n\n## Usage\n\n### Plugin\nAdd the plugin in the webpack configuration passing the Nova entry endpoints.\n\n```js\nmodule.exports = {\n  ...\n  plugins: [\n    new NovaConsumerPlugin({\n      novas: [\n        {\n          entry: 'http://localhost:8080/client.js',\n          views: [\n            'ExampleView'\n          ]\n        }\n      ]\n    })\n  ]\n}\n```\n\n### Live Reload\n\nThe plugin creates a socket connection for each Nova that is running with `webpack-dev-server` in development mode. Then the page is reload everytime that the Nova code is compiled with webpack. \n\n\n### Lazy Load\n\nLazy load is enabled by default when webpack runs in production mode. It generates a script file that loads the Nova `entry` when a view listed in the `views` field is placed in the page using the [Nova Bridge](https://ara-framework.github.io/website/docs/nova-bridge)\n\nExample using [nova-vue-bridge](https://www.npmjs.com/package/nova-vue-bridge):\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv class=\"container\"\u003e\n    \u003cnova name=\"ExampleView\" :data=\"{ title: 'Ara Framework' }\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n```\n\nThe entry point `http://localhost:8080/client.js` is loaded when Vue.js mounts the example component above.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fara-framework%2Fwebpack-nova-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fara-framework%2Fwebpack-nova-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fara-framework%2Fwebpack-nova-consumer/lists"}