문제

I am using the Jammit gem to aggregate CSS and Javascript files into single resources for faster download. Using YUI compression, I assembled a large number of scripts and stylesheets into the assets.yml config file and everything gets loaded correctly in the development environment.

However, when I specify package_assets: always in the assets.yml file to enforce asset packaging under development, then suddenly multiple errors occur and the Web page fails to load properly.

As the order of the includes is correct, I do not understand what else could have gone wrong... Is it possible that Jammit reorders or damages the code of packaged Javascript files? Could it be that including already minified files into assets.yml causes problems?

도움이 되었습니까?

해결책

which compression are you using?

i've used the YUI and everything worked great.

maybe you've got a previously minified js file and that compression is breaking it?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top