diff --git a/lib/dest/write-contents/write-stream.js b/lib/dest/write-contents/write-stream.js index 84e03584..0a373d07 100644 --- a/lib/dest/write-contents/write-stream.js +++ b/lib/dest/write-contents/write-stream.js @@ -31,7 +31,7 @@ function writeStream(file, optResolver, onWritten) { // TODO: should this use a clone? var streams = [file.contents]; - if (encoding && encoding.enc !== DEFAULT_ENCODING) { + if (encoding && codec.enc !== DEFAULT_ENCODING) { streams.push(getCodec(DEFAULT_ENCODING).decodeStream()); streams.push(codec.encodeStream()); }