Skip to content

Commit 050c0f0

Browse files
authored
Merge pull request #75 from laurentpayot/#74-fix
2 parents 267579e + 1449a98 commit 050c0f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ function mkdir(outputDir, callback) {
231231
}
232232

233233
function processFile(inputFile, outputFile) {
234-
fs.readFile(inputFile, { encoding: 'utf8' }, function(err, data) {
234+
fs.readFile(inputFile, { encoding: 'utf8' }, async function(err, data) {
235235
if (err) {
236236
fatal('Cannot read ' + inputFile + '\n' + err.message);
237237
}
238238
var minified;
239239
try {
240-
minified = minify(data, createOptions());
240+
minified = await minify(data, createOptions());
241241
}
242242
catch (e) {
243243
fatal('Minification error on ' + inputFile + '\n' + e.message);

0 commit comments

Comments
 (0)