Skip to content

Commit 83c749a

Browse files
committed
Set options.newLine to null for concat.
1 parent c302ef5 commit 83c749a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function addAssetsToStream(paths, files) {
7878
// option for newLine in gulp-concat
7979
if (options.hasOwnProperty('newLine')) {
8080
if (options.newLine === ';' && type === 'css') {
81-
options.newLine = '';
81+
options.newLine = null;
8282
}
8383
gulpConcatOptions.newLine = options.newLine;
8484
}

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe('useref()', function() {
207207
stream = useref({newLine: separator}),
208208

209209
buffer1 = new Buffer(fs.readFileSync(path.join('test', 'fixtures', 'css', 'one.css'))),
210-
buffer2 = new Buffer(''),
210+
buffer2 = new Buffer('\n'),
211211
buffer3 = new Buffer(fs.readFileSync(path.join('test', 'fixtures', 'css', 'two.css'))),
212212
bufferFinal = Buffer.concat([buffer1, buffer2, buffer3]),
213213

0 commit comments

Comments
 (0)