Answer the question
In order to leave comments, you need to log in
How to enable uglifier for js compression and compress css in development?
Gemfile: gem 'uglifier'
development.rb:
config.assets.prefix = "/dev-assets"
config.assets.debug = false
config.assets.raise_runtime_errors = true
config.assets.digest = true
config.assets.js_compressor = :uglifier
config.assets.compress = true
Answer the question
In order to leave comments, you need to log in
Why not just do:
RAILS_ENV=production rake assets:precompile
RAILS_ENV=production rails s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question