Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip generating compiled files with first line empty to properly load sourcemap #142

Open
smahelos opened this issue Nov 20, 2017 · 0 comments

Comments

@smahelos
Copy link

Hallo,

I had problem to load sourcemap with compiled files. Problem was that files are generated with first line empty.
I made small change in compiler.php on line 163:
From:
// load content $content = ''; foreach ($files as $file) { $content .= PHP_EOL . $this->loadFile($file); }

To:
// load content $content = ''; foreach ($files as $file) { if ($content !== '') { $content .= PHP_EOL; } $content .= $this->loadFile($file); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant