Skip to content

Commit 49e4786

Browse files
eemeliEemeli Aro
andauthored
Don't try to create file with no output (#53)
Co-authored-by: Eemeli Aro <eemeli.aro@op.fi>
1 parent 09b0bef commit 49e4786

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ module.exports = function(opts) {
6363
}
6464

6565
var success = function(buildResponse) {
66-
stream.write(createFile(filename, output, buildResponse, sourceMapOutput));
66+
if (output) {
67+
stream.write(
68+
createFile(filename, output, buildResponse, sourceMapOutput)
69+
);
70+
}
6771
stream.resume();
6872
stream.end();
6973
};

0 commit comments

Comments
 (0)