Skip to content

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

Description

@smahelos

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); }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions