summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorRichard Macklin <richard.github@nrm.com>2017-01-13 01:31:26 -0800
committerRichard Macklin <richard.github@nrm.com>2017-01-16 20:00:55 -0800
commitd5e996d1c235acb5db022429b1a5afe9eb329690 (patch)
treef74c14c0c34a6dfbd6ac45eedfb15e075157af8b /Gemfile
parent17c42cb8a283780b489826e9efe3f900011c2eac (diff)
downloadgitlab-ce-d5e996d1c235acb5db022429b1a5afe9eb329690.tar.gz
Switch to sassc-rails
Closes #18432 This uses sassc to compile the application's SASS so it compiles faster. Without attempting to be very scientific here are some numbers I got: Using sassc-rails: ``` [1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } } user system total real 1.430000 0.380000 1.810000 ( 1.830753) ``` Using sass-rails: ``` [1] pry(main)> Benchmark.bm { |bm| bm.report { Rails.application.assets["application.css"] } } user system total real 12.320000 0.530000 12.850000 ( 12.909684) ``` The result is faster page loads when changing CSS in development and faster precompilation.
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 07ff500dfea..62e43b798f7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -219,7 +219,7 @@ gem 'oj', '~> 2.17.4'
gem 'chronic', '~> 0.10.2'
gem 'chronic_duration', '~> 0.10.6'
-gem 'sass-rails', '~> 5.0.6'
+gem 'sassc-rails', '~> 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'uglifier', '~> 2.7.2'
gem 'gitlab-turbolinks-classic', '~> 2.5', '>= 2.5.6'