“rake assets:precompile” gives punc error

前端 未结 10 725
离开以前
离开以前 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:42

    Verify the new JS files that you added in your application include plugins and other added by Bower or something like it.

    Try add one by one to find what file have problem. In my case was in anchor-scroll.js. When I changed to use anchor-scroll.min rake runs ok.

    Change this:

    //= require anchor-scroll/scroll
    

    For:

    //= require anchor-scroll/scroll.min
    

提交回复
热议问题