{"id":13774709,"url":"https://github.com/VladShcherbin/rollup-plugin-svg-sprite","last_synced_at":"2025-05-11T06:33:35.897Z","repository":{"id":49114185,"uuid":"119157873","full_name":"vladshcherbin/rollup-plugin-svg-sprite","owner":"vladshcherbin","description":"Create external svg sprite file from your bundle using Rollup","archived":false,"fork":false,"pushed_at":"2021-06-28T13:22:59.000Z","size":347,"stargazers_count":21,"open_issues_count":7,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T13:06:06.278Z","etag":null,"topics":["create","extract","generate","minify","rollup","rollup-plugin","sprite","svg","svg-sprite","svgo"],"latest_commit_sha":null,"homepage":"","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/vladshcherbin.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":"2018-01-27T11:22:48.000Z","updated_at":"2024-05-23T09:38:35.000Z","dependencies_parsed_at":"2022-09-13T05:40:36.833Z","dependency_job_id":null,"html_url":"https://github.com/vladshcherbin/rollup-plugin-svg-sprite","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/vladshcherbin%2Frollup-plugin-svg-sprite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladshcherbin%2Frollup-plugin-svg-sprite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladshcherbin%2Frollup-plugin-svg-sprite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladshcherbin%2Frollup-plugin-svg-sprite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladshcherbin","download_url":"https://codeload.github.com/vladshcherbin/rollup-plugin-svg-sprite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528415,"owners_count":21922623,"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":["create","extract","generate","minify","rollup","rollup-plugin","sprite","svg","svg-sprite","svgo"],"created_at":"2024-08-03T17:01:29.520Z","updated_at":"2025-05-11T06:33:35.498Z","avatar_url":"https://github.com/vladshcherbin.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Other File Imports"],"readme":"# rollup-plugin-svg-sprite\n\n[![Build Status](https://travis-ci.org/vladshcherbin/rollup-plugin-svg-sprite.svg?branch=master)](https://travis-ci.org/vladshcherbin/rollup-plugin-svg-sprite)\n[![Codecov](https://codecov.io/gh/vladshcherbin/rollup-plugin-svg-sprite/branch/master/graph/badge.svg)](https://codecov.io/gh/vladshcherbin/rollup-plugin-svg-sprite)\n\nCreate external svg sprite file from your bundle using Rollup and optimize it using [SVGO](https://github.com/svg/svgo).\n\n## Installation\n\n```bash\n# yarn\nyarn add rollup-plugin-svg-sprite -D\n\n# npm\nnpm install rollup-plugin-svg-sprite -D\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport svgSprite from 'rollup-plugin-svg-sprite'\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/app.js',\n    format: 'iife'\n  },\n  plugins: [\n    svgSprite({\n      outputFolder: 'dist/public'\n    })\n  ]\n}\n```\n\nNext, import svg files in your project:\n\n```js\nimport './svg/trash.svg'\nimport './svg/user.svg'\n```\n\n### Configuration\n\nThere are some useful options:\n\n#### outputFolder\n\nType: `string`\n\nFolder where generated svg sprite will be saved.\n\n```js\nsvgSprite({\n  outputFolder: 'dist/public'\n})\n```\n\n#### minify\n\nType: `boolean` | Default: `true`\n\nMinify generated svg sprite.\n\n```js\nsvgSprite({\n  outputFolder: 'dist/public',\n  minify: false\n})\n```\n\nAll other options are passed to [svgo package](https://github.com/svg/svgo) which is used inside.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVladShcherbin%2Frollup-plugin-svg-sprite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVladShcherbin%2Frollup-plugin-svg-sprite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVladShcherbin%2Frollup-plugin-svg-sprite/lists"}