{"id":15061833,"url":"https://github.com/jantimon/postcss-inline","last_synced_at":"2025-04-10T09:45:07.929Z","repository":{"id":57328130,"uuid":"49725995","full_name":"jantimon/postcss-inline","owner":"jantimon","description":"PostCSS plugin that puts fonts / and images as data URIs into your CSS","archived":false,"fork":false,"pushed_at":"2016-01-20T15:19:16.000Z","size":59,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:41:49.575Z","etag":null,"topics":["fonts","postcss"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jantimon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-01-15T15:11:17.000Z","updated_at":"2018-09-25T02:30:45.000Z","dependencies_parsed_at":"2022-08-23T14:40:56.575Z","dependency_job_id":null,"html_url":"https://github.com/jantimon/postcss-inline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jantimon%2Fpostcss-inline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jantimon%2Fpostcss-inline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jantimon%2Fpostcss-inline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jantimon%2Fpostcss-inline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jantimon","download_url":"https://codeload.github.com/jantimon/postcss-inline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248196245,"owners_count":21063378,"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":["fonts","postcss"],"created_at":"2024-09-24T23:25:43.483Z","updated_at":"2025-04-10T09:45:07.904Z","avatar_url":"https://github.com/jantimon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Inline [![Build Status][ci-img]][ci]\n\n[PostCSS] plugin that puts images and fonts as data URIs into your CSS. (based on PostCSS Image Inline)\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/jantimon/postcss-inline.svg\n[ci]:      https://travis-ci.org/jantimon/postcss-inline\n\n\n# Merged into postcss-url\n\nThe features of postcss-inline were merged into [postcss-url](https://github.com/postcss/postcss-url)\n\n# Deprecated\n\n```css\n@font-face {\n  font-family: 'MyWebFont';\n  src: url('webfont.woff') format('woff');\n}\n.foo {\n    background-image: url(one_pixel_transparent.gif);\n}\n.bar {\n    background: url(one_pixel_transparent.gif);\n}\n```\n\n```css\n@font-face {\n  font-family: 'MyWebFont';\n  src: url('data:application/x-font-woff;base64,AACH5BAEAAAAALA...==') format('woff');\n}\n.foo {\n    background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);\n}\n.bar {\n    background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);\n}\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-inline') ])\n```\n\n```js\n// Inline only woff files:\npostcss([ require('postcss-inline')({filter: /.woff$/}) ])\n```\n\n```js\n// Specify the base path for the assets\npostcss([ require('postcss-inline')({basePath: '/some/path'}) ])\n```\n\n```js\n// Delete assets after inline (use with care!)\npostcss([ require('postcss-inline')({deleteAsset: true}) ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjantimon%2Fpostcss-inline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjantimon%2Fpostcss-inline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjantimon%2Fpostcss-inline/lists"}