summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2019-02-14 17:54:34 +1100
committerSimon Knox <psimyn@gmail.com>2019-02-15 21:10:19 +1100
commit5996fd145ff8d774573e5a0ef22c3b4f0611196f (patch)
treeab8c31c2ae0c32a2273dd18662550f58f4894580 /config
parent0328d4faeec093db7744ae5a018174ea4f558a42 (diff)
downloadgitlab-ce-5996fd145ff8d774573e5a0ef22c3b4f0611196f.tar.gz
Only load selected syntax highlight CSS
Compile highlight CSS separately Move highlight-specific mixins out of mixins.scss Rename solarized themes to match theme name as this was a smaller change than changing all instances to snake_case
Diffstat (limited to 'config')
-rw-r--r--config/application.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index 49e7f5836e4..67942ae116b 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -147,6 +147,13 @@ module Gitlab
config.assets.precompile << "errors.css"
config.assets.precompile << "csslab.css"
+ config.assets.precompile << "highlight/dark.css"
+ config.assets.precompile << "highlight/monokai.css"
+ config.assets.precompile << "highlight/solarized-dark.css"
+ config.assets.precompile << "highlight/solarized-light.css"
+ config.assets.precompile << "highlight/white.css"
+ config.assets.precompile << "highlight/none.css"
+
# Import gitlab-svgs directly from vendored directory
config.assets.paths << "#{config.root}/node_modules/@gitlab/svgs/dist"
config.assets.precompile << "icons.svg"