Best way to combine and minify JS / CSS on Heroku

后端 未结 8 1299
梦谈多话
梦谈多话 2020-12-24 06:39

First of all, according to this answer, the :cache => true option on stylesheet_link_tag and javascript_include_tag doesn\'t work o

8条回答
  •  别那么骄傲
    2020-12-24 07:08

    I haven't tried it on heroku yet, but Sprockets might be good for that. Also, in the past, I've had more luck with

    :cache => 'all.css'
    :cache => 'all.js'
    

    instead of 'true'

提交回复
热议问题