CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

Platform independent new line replacement for JST templates #200

Closed teeli closed 9 years ago

teeli commented 10 years ago

PHP_EOL will basically only replace \n, at least when running on *nix based server, so if template files are using Windows style line breaks (\r\n), they will not be minified to one line, causing JS errors as referenced in issue #190. This will replace any kind of line break (\n, \r\n or just \r).