File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function cssExtract (bundle, opts) {
39
39
var source = from2 ( chunk . source )
40
40
var sm = staticModule ( {
41
41
'insert-css' : function ( src ) {
42
- writeStream . write ( String ( src ) )
42
+ writeStream . write ( String ( src ) + '\n' )
43
43
return from2 ( 'null' )
44
44
}
45
45
} )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ test('css-extract', function (t) {
25
25
return bl ( function ( err , data ) {
26
26
t . ifError ( err , 'no error' )
27
27
const exPath = path . join ( __dirname , './expected.css' )
28
- const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( )
28
+ const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( ) + '\n'
29
29
t . equal ( String ( data ) , expected , 'extracted all the CSS' )
30
30
} )
31
31
}
@@ -65,7 +65,7 @@ test('css-extract', function (t) {
65
65
return bl ( function ( err , data ) {
66
66
t . ifError ( err , 'no error' )
67
67
const exPath = path . join ( __dirname , './expected-static.css' )
68
- const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( )
68
+ const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( ) + '\n'
69
69
t . equal ( String ( data ) , expected , 'extracted all the CSS' )
70
70
} )
71
71
}
You can’t perform that action at this time.
0 commit comments