{"id":13656455,"url":"https://github.com/joscha/gulp-rewrite-css","last_synced_at":"2026-03-09T11:33:08.949Z","repository":{"id":16694438,"uuid":"19450974","full_name":"joscha/gulp-rewrite-css","owner":"joscha","description":"A gulp plugin that allows rewriting url references in CSS","archived":false,"fork":false,"pushed_at":"2022-12-09T08:01:37.000Z","size":1791,"stargazers_count":17,"open_issues_count":25,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T00:50:01.919Z","etag":null,"topics":["coffeescript","css","gulp","url"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/joscha.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}},"created_at":"2014-05-05T09:32:37.000Z","updated_at":"2021-12-17T18:26:29.000Z","dependencies_parsed_at":"2023-01-13T20:30:42.095Z","dependency_job_id":null,"html_url":"https://github.com/joscha/gulp-rewrite-css","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fgulp-rewrite-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fgulp-rewrite-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fgulp-rewrite-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fgulp-rewrite-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joscha","download_url":"https://codeload.github.com/joscha/gulp-rewrite-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991511,"owners_count":21194893,"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":["coffeescript","css","gulp","url"],"created_at":"2024-08-02T05:00:20.756Z","updated_at":"2026-03-09T11:33:03.763Z","avatar_url":"https://github.com/joscha.png","language":"CoffeeScript","readme":"#[gulp](https://github.com/gulpjs/gulp)-rewrite-css\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/joscha/gulp-rewrite-css.svg)](https://greenkeeper.io/)\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![devDependency Status][devdepstat-image]][devdepstat-url]\n\nA gulp plugin that allows rewriting `url(…)` and `@import` references in CSS\n\n## Installation\n\n```console\nnpm install gulp-rewrite-css --save-dev\n```\n\n## Usage\n\n```javascript\nvar gulp = require('gulp');\nvar rewriteCSS = require('gulp-rewrite-css');\n\ngulp.task('my-rewrite', function() {\n  var dest = './dist/';\n  return gulp.src('./static/css/*.css')\n    .pipe(rewriteCSS({destination:dest}))\n    .pipe(gulp.dest(dest));\n});\n```\n### Options\n* `destination` (required, String) - the target directory for the processed CSS. Paths are rewritten relatively to that directory.\n* `[debug]` (optional, boolean, defaults to false) - whether to log what gulp-rewrite-css is doing\n* `[adaptPath]` (optional, Function, defaults to the internal rewriting method of gulp-rewrite-css) - will be passed a context hash that contains the following options:\n\n\t| key              | description                                                              |\n\t|------------------|--------------------------------------------------------------------------|\n\t| `sourceDir`      | the path in which the currently processed CSS file resides in            |\n\t| `sourceFile`     | the path to the currently processed CSS file                             |\n\t| `destinationDir` | the path of the target directory where the CSS file ends in              |\n\t| `targetFile`     | the path of the target file (e.g. the contents of `url(…)` or `@import`) |\n\n## License\nMIT (c) 2017 Joscha Feth \u003cjoscha@feth.com\u003e\n\n[npm-url]: https://npmjs.org/package/gulp-rewrite-css\n[npm-image]: http://img.shields.io/npm/v/gulp-rewrite-css.svg\n\n[travis-url]: https://travis-ci.org/joscha/gulp-rewrite-css\n[travis-image]: http://img.shields.io/travis/joscha/gulp-rewrite-css.svg\n\n[coveralls-url]: https://coveralls.io/r/joscha/gulp-rewrite-css\n[coveralls-image]: http://img.shields.io/coveralls/joscha/gulp-rewrite-css.svg\n[coveralls-original-image]: https://coveralls.io/repos/joscha/gulp-rewrite-css/badge.png\n\n[depstat-url]: https://david-dm.org/joscha/gulp-rewrite-css\n[depstat-image]: https://david-dm.org/joscha/gulp-rewrite-css.svg?theme=shields.io\n\n[devdepstat-url]: https://david-dm.org/joscha/gulp-rewrite-css#info=devDependencies\n[devdepstat-image]: https://david-dm.org/joscha/gulp-rewrite-css/dev-status.svg?theme=shields.io\n","funding_links":[],"categories":["CoffeeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fgulp-rewrite-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoscha%2Fgulp-rewrite-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fgulp-rewrite-css/lists"}