From ad4fe22a0669c4ee3f1ecc70cf0248ae15547b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20=C5=A0mahel?= Date: Mon, 20 Nov 2017 17:07:56 +0100 Subject: [PATCH] Problem to load sourcemap with compiled files. Files were generated with first line empty. --- WebLoader/Compiler.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/WebLoader/Compiler.php b/WebLoader/Compiler.php index 370995e..77065c8 100644 --- a/WebLoader/Compiler.php +++ b/WebLoader/Compiler.php @@ -157,10 +157,14 @@ public function getContent(array $files = null) $files = $this->collection->getFiles(); } + // load content $content = ''; foreach ($files as $file) { - $content .= PHP_EOL . $this->loadFile($file); + if ($content !== '') { + $content .= PHP_EOL; + } + $content .= $this->loadFile($file); } // apply filters