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

Commit cdfe0d6

Browse files
author
Mehdy Dara
committed
Update README, version
1 parent fceba90 commit cdfe0d6

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Inspired by [grunt-image-embed](https://github.com/ehynds/grunt-image-embed) and
99
* Supports local and remote resources.
1010
* Supports buffer (and stream **WIP**).
1111
* Ability to define a relative base directory to gulpfile.js. Default is the current directory. [Details](#optionsbasedir)
12+
* Ability to remove a local resource after encoding. Default is unable. [Details](#optionsdeleteafterencoding)
1213
* Ability to specify a weight limit. Default is 32kB which is IE8's limit. [Details](#optionsmaxweightresource)
1314
* Ability to filter on file extensions. Default there is no filter. [Details](#optionsextensionsallowed)
1415
* Ignore a resource by specifying a directive comment in CSS. [Details](#ignore-a-specific-resource)
@@ -53,8 +54,14 @@ Type: `String`
5354

5455
Default value: ``
5556

56-
Notes: If you have absolute image paths in your stylesheet, the path specified in this option will be used as the base directory. By default plugin used the current directory of gulpfile.js to find local resources.
57+
Note: If you have absolute image paths in your stylesheet, the path specified in this option will be used as the base directory. By default plugin used the current directory of gulpfile.js to find local resources.
5758

59+
#### options.deleteAfterEncoding
60+
Type: `Boolean`
61+
62+
Default value: false
63+
64+
Note: Delete a local source file after encoding.
5865

5966
#### options.maxWeightResource
6067
Type: `Number`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
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.0.2",
4+
"version": "1.1.0",
55
"homepage": "http://github.com/zckrs/gulp-css-base64",
66
"repository": {
77
"type": "git",
88
"url": "http://github.com/zckrs/gulp-css-base64.git"
99
},
1010
"bugs": {
1111
"url": "http://github.com/zckrs/gulp-css-base64/issues",
12-
"email": "project@hostname.com"
12+
"email": "mdara@eleven-labs.com"
1313
},
1414
"contributors": [
1515
"Mehdy Dara <[email protected]> (http://eleven-labs.com/)"

test/test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ describe('gulp-css-base64', function () {
322322
assert(!fs.existsSync('test/fixtures/image/very-very-small_copy.png'));
323323

324324
done();
325-
326325
});
327326
});
328327

@@ -354,7 +353,6 @@ describe('gulp-css-base64', function () {
354353
assert(!fs.existsSync('test/fixtures/image/very-very-small_copy.png'));
355354

356355
done();
357-
358356
});
359357
});
360358

0 commit comments

Comments
 (0)