Skip to content

Commit

Permalink
cmd: fix bundling of JS files when files end in a comment, fixes #594
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Aug 18, 2023
1 parent 68d601f commit 644e2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ func minify(t Task) bool {
} else {
fr, err = newConcatFileReader(t.srcs, openInputFile)
if err == nil && fileMimetype == filetypeMime["js"] {
fr.(*concatFileReader).SetSeparator([]byte(";"))
fr.(*concatFileReader).SetSeparator([]byte(";\n"))
}
}
if err != nil {
Expand Down

0 comments on commit 644e2e1

Please sign in to comment.