{"id":30107057,"url":"https://github.com/benignware/grunt-css-datauri","last_synced_at":"2025-08-10T01:33:01.987Z","repository":{"id":17333687,"uuid":"20104817","full_name":"benignware/grunt-css-datauri","owner":"benignware","description":"Convert file-uris to data-uris in css-files","archived":false,"fork":false,"pushed_at":"2016-09-18T15:07:08.000Z","size":270,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T21:17:37.590Z","etag":null,"topics":[],"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/benignware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-23T15:40:16.000Z","updated_at":"2016-09-16T18:48:49.000Z","dependencies_parsed_at":"2022-09-07T02:02:18.884Z","dependency_job_id":null,"html_url":"https://github.com/benignware/grunt-css-datauri","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/grunt-css-datauri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-datauri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-datauri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-datauri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-datauri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/grunt-css-datauri/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-datauri/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663320,"owners_count":24455798,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-10T01:32:06.842Z","updated_at":"2025-08-10T01:33:01.912Z","avatar_url":"https://github.com/benignware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-css-datauri\n\n\u003e convert file-uris to data-uris in css-files\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-css-datauri --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-css-datauri');\n```\n\n## The \"css_datauri\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `css_datauri` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  css_datauri: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.exclude\nType: `Array`\nDefault value: `[]`\n\nExclude files by providing an array of glob-patterns\n\n### Usage Examples\n\n#### Basic Example\nConvert file-uris to data-uris in css-files\n\n```js\ngrunt.initConfig({\n  css_datauri: {\n    build: {\n      options: {},\n      src: 'src/styles.css',\n      dest: 'build/styles.css'\n    }\n  }\n});\n```\n\n#### Exclude files\nYou can exclude files by specifying a glob-pattern\n\n```js\ngrunt.initConfig({\n  css_datauri: {\n    build: {\n      options: {\n        exclude: ['*.gif']\n      },\n      src: 'src/styles.css',\n      dest: 'build/styles.css'\n    }\n  }\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fgrunt-css-datauri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fgrunt-css-datauri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fgrunt-css-datauri/lists"}