This repository was archived by the owner on Sep 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Inspired by [grunt-image-embed](https://github.com/ehynds/grunt-image-embed) and
8
8
9
9
* Supports local and remote resources.
10
10
* 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 )
11
12
* Ability to define a relative base directory to gulpfile.js. Default is the current directory. [ Details] ( #optionsbasedir )
12
13
* Ability to remove a local resource after encoding. Default is unable. [ Details] ( #optionsdeleteafterencoding )
13
14
* Ability to specify a weight limit. Default is 32kB which is IE8's limit. [ Details] ( #optionsmaxweightresource )
@@ -49,6 +50,11 @@ gulp.task('default', function () {
49
50
50
51
## Options
51
52
53
+ #### options.preProcess
54
+ Type: ` Function(buffer, callback) `
55
+
56
+ Default value: ``
57
+
52
58
#### options.baseDir
53
59
Type: ` String `
54
60
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-css-base64" ,
3
3
"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" ,
5
5
"homepage" : " http://github.com/zckrs/gulp-css-base64" ,
6
6
"repository" : {
7
7
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments