{"id":17981141,"url":"https://github.com/vuexltd/preact-svg-loader","last_synced_at":"2026-03-10T07:31:31.137Z","repository":{"id":57329570,"uuid":"80669007","full_name":"VuexLtd/preact-svg-loader","owner":"VuexLtd","description":"A webpack loader to load svg files as preact components.","archived":false,"fork":false,"pushed_at":"2018-08-17T13:44:49.000Z","size":29,"stargazers_count":22,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T10:52:37.248Z","etag":null,"topics":["preact","svg","webpack","webpack-loader"],"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/VuexLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-01T22:02:44.000Z","updated_at":"2024-09-02T09:05:30.000Z","dependencies_parsed_at":"2022-09-14T19:01:05.008Z","dependency_job_id":null,"html_url":"https://github.com/VuexLtd/preact-svg-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VuexLtd%2Fpreact-svg-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VuexLtd%2Fpreact-svg-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VuexLtd%2Fpreact-svg-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VuexLtd%2Fpreact-svg-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VuexLtd","download_url":"https://codeload.github.com/VuexLtd/preact-svg-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245519939,"owners_count":20628801,"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":["preact","svg","webpack","webpack-loader"],"created_at":"2024-10-29T18:07:58.142Z","updated_at":"2026-03-10T07:31:31.081Z","avatar_url":"https://github.com/VuexLtd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# preact-svg-loader\nLoad svg files as preact components.\n\n## Install\n```\nnpm i --save-dev preact-svg-loader\n// or\nyarn add --dev preact-svg-loader\n```\n\n## Usage\n\nAdd the loader to your webpack config.\n```js\nrules: [\n    {\n        test: /\\.svg$/,\n        use: ['preact-svg-loader'],\n    }\n]\n```\n\nIn your code, simply require the svg as if it were a component.\n```jsx\nimport Logo from './logo.svg';\n\n() =\u003e \u003cLogo /\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuexltd%2Fpreact-svg-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvuexltd%2Fpreact-svg-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvuexltd%2Fpreact-svg-loader/lists"}