Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit 18bc414

Browse files
author
Mehdy Dara
committed
Update README.md
1 parent 044eadb commit 18bc414

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Inspired by [grunt-image-embed](https://github.com/ehynds/grunt-image-embed) and
88

99
* Supports local and remote resources.
1010
* Supports buffer (and stream **WIP**).
11+
* Ability to use a pre-process function for each resource find in CSS. Default there is no function. [Details](#optionspreprocess)
1112
* Ability to define a relative base directory to gulpfile.js. Default is the current directory. [Details](#optionsbasedir)
1213
* Ability to remove a local resource after encoding. Default is unable. [Details](#optionsdeleteafterencoding)
1314
* Ability to specify a weight limit. Default is 32kB which is IE8's limit. [Details](#optionsmaxweightresource)
@@ -49,6 +50,11 @@ gulp.task('default', function () {
4950

5051
## Options
5152

53+
#### options.preProcess
54+
Type: `Function(buffer, callback)`
55+
56+
Default value: ``
57+
5258
#### options.baseDir
5359
Type: `String`
5460

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gulp-css-base64",
33
"description": "Gulp's task for transform all resources found in a CSS into base64-encoded data URI strings",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"homepage": "http://github.com/zckrs/gulp-css-base64",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)