Skip to content

Commit

Permalink
Add EOL after each javascript file to prevent bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed Oct 22, 2021
1 parent cdbee43 commit 78d7505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function javascript($files = ['../resources/js/app.js'], $output =
if (self::minifyRequired($files, $output, config('minify.jsImportPaths'))) {
$js = '';
foreach ((array) $files as $file) {
$js .= file_get_contents(self::findJsFile($file));
$js .= file_get_contents(self::findJsFile($file)) . PHP_EOL;
}
$js = Minifier::minify($js, ['flaggedComments' => config('minify.jsFlaggedComments')]);
self::outputFile(public_path($output), $js);
Expand Down

0 comments on commit 78d7505

Please sign in to comment.