Rails Asset Pipeline Improved bug or stack trace

Just updated the application from rails 3.0.9 to 3.2.1, and when I start bundle exec rake assets:precompile, I get errors, but that’s good, but backtrace doesn’t tell me where in my css or scss files there is a syntax problem from. I tried greping for "0ee5c0e69c92af0", but this line does not appear in my project.

bundle exec rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
Invalid CSS after "...0ee5c0e69c92af0": expected ";", was ".png;"

Is there a way to get the best error message or stack trace from the precompilation process? Is there any other way to compile my files css.erbfor syntax checking without this task?

+5
source share
3 answers

, , Sprockets ( CSS) , .

, (), - application.rb :

config.assets.precompile = ['*.css']

application.css . CSS , , , .

+2

, -trace :

$ bundle exec rake --trace assets:precompile
0

, , . , URL- ( , / ) URL- ( / ). . 2.3 docs.

(.sass):

#background
  background-image: url('Long Path 1920x1200.jpg')

(.sass):

#background
  background-image: image-url('Long Path 1920x1200.jpg')

, image-url , url . , , bundle exec rake assets:precompile. , .

:

#background
  background-image: image-url('long-path-1920x1200.jpg')
0

All Articles