summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-04-15 03:13:03 -0700
committerelijah <elijah@riseup.net>2015-04-15 03:13:03 -0700
commite6faba1b8f37b9949baf12bc10d1b3fb0e163fe9 (patch)
treeb5957b2655b19b3c891641812508c834f3bd6040
parente4679c66565d0ccae54ffc58a23083841e5585e7 (diff)
only include uglifier gem in production mode (to compile assets)
-rw-r--r--Gemfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Gemfile b/Gemfile
index 931bb8d..9d18704 100644
--- a/Gemfile
+++ b/Gemfile
@@ -38,11 +38,15 @@ gem "bootstrap-sass", "= 2.3.2.2" # The last 2.x version. Bootstrap-sass version
# with Bootstrap v3. When upgrading to Rails 4, see
# https://github.com/twbs/bootstrap-sass
gem "sass-rails", "~> 3.2.5" # Only version supported by bootstrap-sass 2.3.2.2
-gem "uglifier", "~> 1.2.7" # javascript compression https://github.com/lautis/uglifier
gem 'quiet_assets' # stops logging all the asset requests
-gem 'therubyracer', "~> 0.10.2", :platforms => :ruby
-# ^^ See https://github.com/sstephenson/execjs#readme
-# for list of supported runtimes.
+group :production do
+ gem "uglifier", "~> 1.2.7" # javascript compression https://github.com/lautis/uglifier
+ # this must not be included in development mode, or js
+ # will get included twice.
+ gem 'therubyracer', "~> 0.10.2", :platforms => :ruby
+ # ^^ See https://github.com/sstephenson/execjs#readme
+ # for list of supported runtimes.
+end
## MISC
gem 'certificate_authority', # unreleased so far ... but leap_web_certs need it