Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikwilkowski committed Jun 25, 2018
2 parents 7638e61 + f754ca8 commit 9d7f18c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ module.exports = function( grunt ) {
}],
},

// Default options with multiple files converting to multiple files in wildcard folder
multiple_files5: {
options: {},
files: [{
expand: true,
cwd: "test/css/",
src: "**/*.css",
dest: "test/temp/",
ext: ".min.css",
}],
},

// Custom options
custom_options: {
options: {
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ multiple_files4: {
},
```

Purge a folder as is into multiple files while keeping sub-folder intact:

```js
multiple_files5: {
options: {},
files: [{
expand: true,
cwd: "css/",
src: "**/*.css", // all *.css files in the css/ and it's sub-folders will be purged
dest: "output/", //and placed into the output folder
ext: ".min.css",
}],
},
```

Custom options:

```js
Expand All @@ -149,6 +164,7 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.

## Release History

* 1.1.0 - Mad task async
* 1.0.2 - Fixed to major `css-purge` version
* 1.0.1 - Reduced dependencies
* 1.0.0 - Updated to CSS-Purge 3.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grunt-css-purge",
"version": "1.0.2",
"version": "1.1.0",
"description": "Grunt plugin to run CSS-Purge",
"homepage": "https://github.com/dominikwilkowski/grunt-css-purge",
"repository": {
Expand Down

0 comments on commit 9d7f18c

Please sign in to comment.