Commit 9504e3e3 authored by mh's avatar mh

try not to load uglifier in prod, as it should be pre-compiled

parent 1b041e3a
Pipeline #3983 passed with stages
in 18 minutes and 12 seconds
......@@ -17,7 +17,11 @@ gem 'sass-rails',
ENV['PRECOMPILE'].to_s == '1')
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# but do not load it in production (aka. passenger, as
# we should have all js pre-compiled by then)
gem 'uglifier', '>= 1.3.0',
require: (ENV['RAILS_ENV'].to_s.downcase != 'production' ||
ENV['PRECOMPILE'].to_s == '1')
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment