Skip to content

Commit 1770c70

Browse files
author
Kenny Tran
committed
Merge pull request #19 from Adrien-D/master
Fix passing options
2 parents f00446d + db92074 commit 1770c70

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tasks/purifycss.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ module.exports = function(grunt) {
1515

1616
grunt.registerMultiTask('purifycss', 'Clean unnecessary CSS', function() {
1717
// Merge task-specific and/or target-specific options with these defaults.
18-
var options = this.options({
19-
});
18+
var options = this.options({write: false, info: true});
2019

2120
var src = [];
2221
this.data.src.forEach(function(pathPattern) {
@@ -32,7 +31,7 @@ module.exports = function(grunt) {
3231
styles = styles.concat(style);
3332
});
3433

35-
var pure = purify(src, styles, {write: false, info: true});
34+
var pure = purify(src, styles, options);
3635

3736
grunt.file.write(this.data.dest, pure);
3837
grunt.log.writeln('File "' + this.data.dest + '" created.');

0 commit comments

Comments
 (0)