{"id":16331739,"url":"https://github.com/jansanchez/gulp-css-url-versioner","last_synced_at":"2025-03-22T22:32:04.256Z","repository":{"id":22796418,"uuid":"26142782","full_name":"jansanchez/gulp-css-url-versioner","owner":"jansanchez","description":"A gulp plugin for versioning the CSS property: url","archived":false,"fork":false,"pushed_at":"2016-03-11T20:01:13.000Z","size":30,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-05T18:43:19.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jansanchez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-11-03T22:56:01.000Z","updated_at":"2017-07-01T01:34:14.000Z","dependencies_parsed_at":"2022-08-21T02:40:42.337Z","dependency_job_id":null,"html_url":"https://github.com/jansanchez/gulp-css-url-versioner","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fgulp-css-url-versioner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fgulp-css-url-versioner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fgulp-css-url-versioner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansanchez%2Fgulp-css-url-versioner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jansanchez","download_url":"https://codeload.github.com/jansanchez/gulp-css-url-versioner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243869230,"owners_count":20360981,"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":[],"created_at":"2024-10-10T23:28:30.158Z","updated_at":"2025-03-22T22:32:03.954Z","avatar_url":"https://github.com/jansanchez.png","language":"JavaScript","readme":"\n\n# Gulp CSS Url Versioner [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Code Climate Status][codeclimate-image]][codeclimate-url]\n\n\u003e A gulp plugin for versioning the CSS property: url.\n\u003e Based on: [css-url-versioner](https://github.com/jansanchez/css-url-versioner)\n\n## Getting Started\n\n### Install:\n\n```\nnpm install --save-dev gulp-css-url-versioner\n```\n\n### How to use:\n\n```\nvar gulp = require('gulp'),\n    cssVersioner = require('gulp-css-url-versioner');\n\ngulp.task('styles', function () {\n    return gulp.src('src/css/withoutVersion.css')\n    .pipe(cssVersioner())\n    .pipe(gulp.dest('dist/css/withVersion.css'));\n});\n```\n\n#### With Stylus and Git\n\n\n```\nvar gulp = require('gulp'),\n    stylus = require('gulp-stylus'),\n    cssVersioner = require('gulp-css-url-versioner');\n\ngulp.task('stylus', function () {\n    return gulp.src('src/styles/*.styl')\n    \t.pipe(stylus())\n\t\t.pipe(cssVersioner({lastcommit: true}))\n\t\t.pipe(gulp.dest('dist/styles/'));\n});\n```\n\n\n#### Input\n```\n.fancybox-overlay {\n  background: url(fancybox_overlay.png);\n}\n@font-face {\n\tfont-family: \"OpenSans\";\n\tfont-style: normal;\n\tfont-weight: normal;\n\tsrc: url(\"os.eot\");\n\tsrc: url(\"os.eot#iefix\") format('embedded-opentype'), \n\t\t url(\"os.ttf\") format('truetype'), \n\t\t url(\"os.woff\") format('woff'), \n\t\t url(\"os.svg#OpenSans\") format('svg');\n}\n```\n\n#### Output\n```\n.fancybox-overlay {\n  background: url(fancybox_overlay.png?v=6bfae27);\n}\n@font-face {\n\tfont-family: \"OpenSans\";\n\tfont-style: normal;\n\tfont-weight: normal;\n\tsrc: url(\"os.eot?v=6bfae27\");\n\tsrc: url(\"os.eot?v=6bfae27#iefix\") format('embedded-opentype'), \n\t\t url(\"os.ttf?v=6bfae27\") format('truetype'), \n\t\t url(\"os.woff?v=6bfae27\") format('woff'), \n\t\t url(\"os.svg?v=6bfae27#OpenSans\") format('svg');\n}\n```\n\n\n\n\n### Options:\n\n\n#### variable:\nDefault: `v`\n\nYou can customize the variable name in '?myVariable=yyyymmdd'\n\n```\n{variable: 'myVariable'}\n```\n\n#### version:\nDefault: `yyyymmdd`\n\nBy default the version is the current date. You can also customize it:\n\n```\n{version: '0.0.2'}\n```\n\n#### lastcommit: \nDefault: `false`\n\nSet to true if you want to use the short version of your last commit as your version.\n\n```\n{lastcommit: true}\n```\n\n#### version: Math.random()\n```\n{version: Math.random()}\n```\n\n#### debug \nDefault: `false`\n\nSet to true, if you want to print the relative path for each processed file\n\n```\n{debug: true}\n```\n\n\n[downloads-image]: http://img.shields.io/npm/dm/gulp-css-url-versioner.svg\n[npm-url]: https://www.npmjs.org/package/gulp-css-url-versioner\n[npm-image]: http://img.shields.io/npm/v/gulp-css-url-versioner.svg\n\n[travis-url]: https://travis-ci.org/jansanchez/gulp-css-url-versioner\n[travis-image]: http://img.shields.io/travis/jansanchez/gulp-css-url-versioner.svg\n\n[coveralls-url]: https://coveralls.io/r/jansanchez/gulp-css-url-versioner\n[coveralls-image]: https://img.shields.io/coveralls/jansanchez/gulp-css-url-versioner.svg\n\n[codeship-url]: https://www.codeship.io/projects/44868\n[codeship-image]: https://codeship.io/projects/221e0440-44c9-0132-43bc-1e738e05cfd5/status?branch=master\n\n[codeclimate-url]: https://codeclimate.com/github/jansanchez/gulp-css-url-versioner\n[codeclimate-image]: https://codeclimate.com/github/jansanchez/gulp-css-url-versioner/badges/gpa.svg\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansanchez%2Fgulp-css-url-versioner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjansanchez%2Fgulp-css-url-versioner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansanchez%2Fgulp-css-url-versioner/lists"}