Skip to content

Commit

Permalink
Don't try to create file with no output
Browse files Browse the repository at this point in the history
  • Loading branch information
Eemeli Aro committed Jul 17, 2020
1 parent 09b0bef commit 4aa6d11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -63,7 +63,11 @@ module.exports = function(opts) {
}

var success = function(buildResponse) {
stream.write(createFile(filename, output, buildResponse, sourceMapOutput));
if (output) {
stream.write(
createFile(filename, output, buildResponse, sourceMapOutput)
);
}
stream.resume();
stream.end();
};
Expand Down

0 comments on commit 4aa6d11

Please sign in to comment.