summaryrefslogtreecommitdiff
path: root/changelogs
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 /changelogs
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 'changelogs')
-rw-r--r--changelogs/unreleased/switch-to-sassc.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelogs/unreleased/switch-to-sassc.yml b/changelogs/unreleased/switch-to-sassc.yml
new file mode 100644
index 00000000000..3e6c4baf6d9
--- /dev/null
+++ b/changelogs/unreleased/switch-to-sassc.yml
@@ -0,0 +1,4 @@
+---
+title: Switch to sassc-rails for faster stylesheet compilation
+merge_request: 8556
+author: Richard Macklin