We are using the asset packager in order to reduce the amount of requests to the server. The other bebefit is, that you can compress one bigger file (packager combines all css files into one big one) better, that e.g. 5 smaller ones. It is a great plugin, but recently we had some trouble with it.
Well, when testing some changes in production mode, the site lookes crappy. In development mode, everything looked fine. After doing some debugging, we found out, that a comment in a css file was the problem.
css line: “… … …;z-index:20000;/*paranoid value!*/}”
After calling “rake asset:packager:build_all”, the combined file looked like this:
“… … …;z-index:20000;”
The “}” was missing, which means, that the packager just searches for a starting comment and kills the rest of the line witout checking the end of the commend.
Just keep that in mind, when you write your css.
