开发者

Rails 3.1 Uglifier gem not working

开发者 https://www.devze.com 2023-04-06 16:33 出处:网络
I\'m trying to get uglifier working for JavaScript compression working on l开发者_JAVA百科ocalhost dev environment.I have looked at the rails guide and couple of other posts and all seem to point to t

I'm trying to get uglifier working for JavaScript compression working on l开发者_JAVA百科ocalhost dev environment. I have looked at the rails guide and couple of other posts and all seem to point to the config setting:

config.assets.js_compressor = :uglifier

config.assets.compress=true

I've tried these settings and a couple of variations and nothing seems to work. After viewing my gem list, these are all installed and each one is required in the Gemfile. I'm not really sure what else to try.

Could it possibly be my config settings?


Make sure you have a javascript runtime, e.g.

rubytheracer (deprecated)
node
execjs

This was new in rails 3.1

0

精彩评论

暂无评论...
验证码 换一张
取 消