mape / connect-assetmanager

Middleware for Connect (node.js) for handling your static assets.
MIT License
310 stars 48 forks source link

Files ending in comments and lacking trailing newlines can cause strange side effects #2

Closed puls closed 14 years ago

puls commented 14 years ago

This fixes a bizarre issue where if a JavaScript file ends in a single-line comment that lacks a newline at the end, the comment will subsume the first line of the next JavaScript file. The fix is to explicitly insert another newline between the contents of every asset file.

mape commented 14 years ago

Thanks for the patch, it is now merged into master.