|
1 | | -# grunt-contrib-compress v1.4.2 [](https://travis-ci.org/gruntjs/grunt-contrib-compress) [](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master) |
| 1 | +# grunt-contrib-compress v1.4.3 [](https://travis-ci.org/gruntjs/grunt-contrib-compress) [](https://ci.appveyor.com/project/gruntjs/grunt-contrib-compress/branch/master) |
2 | 2 |
|
3 | 3 | > Compress files and folders |
4 | 4 |
|
@@ -29,7 +29,7 @@ Task targets, files and options may be specified according to the grunt [Configu |
29 | 29 |
|
30 | 30 | Node Libraries Used: |
31 | 31 | [archiver](https://github.com/ctalkington/node-archiver) (for zip/tar) |
32 | | -[zlib](http://nodejs.org/api/zlib.html#zlib_options) (for gzip). |
| 32 | +[zlib](https://nodejs.org/api/zlib.html#zlib_options) (for gzip). |
33 | 33 | ### Options |
34 | 34 |
|
35 | 35 | #### archive |
@@ -101,6 +101,14 @@ Default: `false` |
101 | 101 |
|
102 | 102 | Pretty print file sizes when logging. |
103 | 103 |
|
| 104 | +#### createEmptyArchive |
| 105 | +Type: `Boolean` |
| 106 | +Default: `true` |
| 107 | + |
| 108 | +This can be used when you don't want to get an empty archive as a result, if there are no files at the specified paths. |
| 109 | + |
| 110 | +It may be useful, if you don't clearly know if files exist and you don't need an empty archive as a result. |
| 111 | + |
104 | 112 | ### File Data |
105 | 113 |
|
106 | 114 | The following additional keys may be passed as part of a `dest:src` pair when using an Archiver-backed format. |
@@ -273,6 +281,7 @@ compress: { |
273 | 281 |
|
274 | 282 | ## Release History |
275 | 283 |
|
| 284 | + * 2017-05-20 v1.4.3 Update pretty-bytes to v4.0.2. Add option to not to create empty archive. |
276 | 285 | * 2017-05-20 v1.4.2 Update archiver to v1.3.0. |
277 | 286 | * 2017-01-20 v1.4.1 Make brotli support optional. |
278 | 287 | * 2017-01-18 v1.4.0 Add support for brotli. |
@@ -318,4 +327,4 @@ compress: { |
318 | 327 |
|
319 | 328 | Task submitted by [Chris Talkington](http://christalkington.com/) |
320 | 329 |
|
321 | | -*This file was generated on Sat May 20 2017 00:39:54.* |
| 330 | +*This file was generated on Sat May 20 2017 14:05:16.* |
0 commit comments