{"id":20760410,"url":"https://github.com/vanng822/webpackstats","last_synced_at":"2025-03-11T16:49:19.275Z","repository":{"id":57538865,"uuid":"64879626","full_name":"vanng822/webpackstats","owner":"vanng822","description":"Generate url based on bundle tracker stats","archived":false,"fork":false,"pushed_at":"2024-05-04T14:12:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T05:27:39.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/vanng822.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-03T21:10:59.000Z","updated_at":"2024-05-04T14:13:02.000Z","dependencies_parsed_at":"2024-05-04T14:31:39.317Z","dependency_job_id":"e646cd00-afa4-43e5-b904-5282036112dd","html_url":"https://github.com/vanng822/webpackstats","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fwebpackstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fwebpackstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fwebpackstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fwebpackstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/webpackstats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243076663,"owners_count":20232437,"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-17T10:13:32.051Z","updated_at":"2025-03-11T16:49:19.222Z","avatar_url":"https://github.com/vanng822.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpackstats\n  For rendering the bundle url generated by webpack based on metadata generated by https://github.com/owais/webpack-bundle-tracker\n\n# Usage\n\n  ```go\n  templates := template.New(\"\")\n  templates = templates.Funcs(webpackstats.WebpackURLFuncMap(\"/path/to/stats.json\"))\n  templates = template.Must(templates.ParseGlob(\"templates/*\"))\n  ```\n\n  Bundle with single chunk\n  ```html\n  \u003cscript type=\"text/javascript\" src=\"{{webpackUrl \"bundle\"}}\"\u003e\u003c/script\u003e\n  ```\n\n  Loop through chunks of the bundle\n  ```html\n  {{- range $bundleUrl := webpackUrls \"bundle\" }}\n    \u003cscript type=\"text/javascript\" src=\"{{ $bundleUrl }}\"\u003e\u003c/script\u003e\n  {{- end }}\n  ```\n\n  Generate scripts for all chunks of the bundle\n  ```html\n  {{webpackScripts \"bundle\"}}\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fwebpackstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Fwebpackstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fwebpackstats/lists"}