Skip to content

Commit

Permalink
Fixing concat, it breaks some files if there is no new line.
Browse files Browse the repository at this point in the history
When concatenating JS files that are NOT minified for development purpose for example that contain comments /*..*/ it will cause syntax errors in the concatenated file.
  • Loading branch information
Florian Krämer committed Mar 13, 2015
1 parent 49a91e0 commit fd741ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Task/File/Concat.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function run()
return Result::error($this, sprintf('File %s not found', $file));
}

$dump .= file_get_contents($file);
$dump .= file_get_contents($file) . "\n";
}
}

Expand Down

0 comments on commit fd741ec

Please sign in to comment.