Comparing version 0.1.1 to 0.1.2
@@ -48,3 +48,13 @@ (function() { | ||
} | ||
return exports.process(rawHtml, options, callback); | ||
return exports.process(rawHtml, options, function(err, html, $) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
if (!options.output) { | ||
return callback(err, html, $); | ||
} | ||
return fs.writeFile(options.output, html, function(err) { | ||
return callback(err, html, $); | ||
}); | ||
}); | ||
}); | ||
@@ -51,0 +61,0 @@ }; |
{ | ||
"name": "cdnify", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "CLI tool and library to use CDN in production", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7776
93