slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comments on last line trigger a bug

DomenicoDeFelice opened this issue · comments

If a JS file has a //comment on the last line (without any newline after), the concatenated code is wrong, causing errors of the js compiler.
I'm submitting a pull request to fix this bug by appending a newline after the contents of each file.
Hopefully there is a better solution.

The fix is in the same pull request with the google closure options addition.