Skip to content

Commit e101cd2

Browse files
authored
Add newlines between chunks of css
Right now, the different chunks of css overlap which isn't what we are trying to do at this step (the idea is that you can minify at a later point in the build step). This adds some newlines between chunks of found css so that they don't slowly pule up on top of each other.
1 parent 97f356d commit e101cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function cssExtract (bundle, opts) {
3939
var source = from2(chunk.source)
4040
var sm = staticModule({
4141
'insert-css': function (src) {
42-
writeStream.write(String(src))
42+
writeStream.write(String(src) + '\n\n')
4343
return from2('null')
4444
}
4545
})

0 commit comments

Comments
 (0)