Disable Asset Minification in Rails Production

后端 未结 9 1925
Happy的楠姐
Happy的楠姐 2020-12-04 17:52

In order to debug javascript in my heroku production environment, I need to disable asset compression (or at least compression of javascript). I tried config.assets.c

9条回答
  •  执笔经年
    2020-12-04 18:15

    Comment out the uglifier and add config.assets.debug = true. This worked for me.

    • Compress JavaScripts and CSS:

      config.assets.js_compressor = :uglifier

    • Debug mode disables concatenation and preprocessing of assets. But this option may cause significant delays in view rendering with a large number of complex assets:

      config.assets.debug = true

提交回复
热议问题