Skip to content

Commit 4650c64

Browse files
author
Matthew Rourke
committed
Clean up plugin task file
1 parent 5578c08 commit 4650c64

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

tasks/purifycss.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ var purify = require('purify-css');
1313

1414
module.exports = function(grunt) {
1515

16-
// Please see the Grunt documentation for more information regarding task
17-
// creation: http://gruntjs.com/creating-tasks
18-
1916
grunt.registerMultiTask('purifycss', 'Clean unnecessary CSS', function() {
2017
// Merge task-specific and/or target-specific options with these defaults.
2118
var options = this.options({
@@ -24,19 +21,16 @@ module.exports = function(grunt) {
2421
var src = [];
2522
this.data.src.forEach(function(pathPattern) {
2623
var files = glob.sync(pathPattern);
27-
console.log("glob files: ", files);
24+
console.log("Source Files: ", files);
2825
src = src.concat(files);
2926
});
3027

3128
var styles = [];
3229
this.data.css.forEach(function(pathPattern) {
33-
var files = glob.sync(pathPattern);
34-
console.log("glob styles: ", files);
35-
styles = styles.concat(files);
36-
})
37-
38-
console.log(src);
39-
console.log(styles);
30+
var style = glob.sync(pathPattern);
31+
console.log("Style Files: ", style);
32+
styles = styles.concat(style);
33+
});
4034

4135
var pure = purify(src, styles, {write: false, info: true});
4236

0 commit comments

Comments
 (0)