“rake assets:precompile” gives punc error

前端 未结 10 711
离开以前
离开以前 2020-12-04 10:56

I\'m trying to precompile my assets for production, but rails doesn\'t seem to be cooperating.

$ bundle exec rake assets:precompile
/home/drderp/.rvm/rubies/         


        
10条回答
  •  伪装坚强ぢ
    2020-12-04 11:21

    For some reason, on Heroku and also when I ran the above-mentioned code to "uglify" the javascript in the rails console, it would not report the line number of the error!. It is just a ruby wrapper for UglifyJS, which you can use online here https://skalman.github.io/UglifyJS-online/.

    So I just copied and pasted the offending js file in here, and it reported the line number. Very easy.

提交回复
热议问题