mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
[bug] unable to build homepage custom stylesheet
This commit is contained in:
parent
50dee594d9
commit
6eebd61e3c
@ -1,5 +1,7 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
|
- Fix a bug: unable to build homepage custom stylesheet
|
||||||
|
|
||||||
## v4.6.3 2020 October 28
|
## v4.6.3 2020 October 28
|
||||||
|
|
||||||
- Enabled Typescript
|
- Enabled Typescript
|
||||||
|
3
Gemfile
3
Gemfile
@ -136,3 +136,6 @@ gem 'repost'
|
|||||||
gem 'icalendar'
|
gem 'icalendar'
|
||||||
|
|
||||||
gem 'tzinfo-data'
|
gem 'tzinfo-data'
|
||||||
|
|
||||||
|
# compilation of dynamic stylesheets (home page & theme)
|
||||||
|
gem 'sassc'
|
||||||
|
@ -336,6 +336,8 @@ GEM
|
|||||||
rubyzip (>= 1.3.0)
|
rubyzip (>= 1.3.0)
|
||||||
rubyzip (1.3.0)
|
rubyzip (1.3.0)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
|
sassc (2.2.1)
|
||||||
|
ffi (~> 1.9)
|
||||||
seed_dump (3.3.1)
|
seed_dump (3.3.1)
|
||||||
activerecord (>= 4)
|
activerecord (>= 4)
|
||||||
activesupport (>= 4)
|
activesupport (>= 4)
|
||||||
@ -476,6 +478,7 @@ DEPENDENCIES
|
|||||||
rubocop (~> 0.61.1)
|
rubocop (~> 0.61.1)
|
||||||
rubyXL
|
rubyXL
|
||||||
rubyzip (>= 1.3.0)
|
rubyzip (>= 1.3.0)
|
||||||
|
sassc
|
||||||
seed_dump
|
seed_dump
|
||||||
sha3
|
sha3
|
||||||
sidekiq (>= 6.0.7)
|
sidekiq (>= 6.0.7)
|
||||||
|
@ -149,7 +149,7 @@ class Stylesheet < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.home_page_css
|
def self.home_page_css
|
||||||
engine = Sass::Engine.new(home_style, syntax: :scss)
|
engine = SassC::Engine.new(home_style, style: :compressed)
|
||||||
engine.render.presence || '.home-page {}'
|
engine.render.presence || '.home-page {}'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user