mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: make sure rails sprockets sass functions are included when compiling sass
This commit is contained in:
parent
43496958fe
commit
f9e80e1eb2
@ -21,6 +21,10 @@ class DiscourseSassCompiler
|
||||
def initialize(scss, target)
|
||||
@scss = scss
|
||||
@target = target
|
||||
|
||||
unless Sass::Script::Functions < Sprockets::SassFunctions
|
||||
Sass::Script::Functions.send :include, Sprockets::SassFunctions
|
||||
end
|
||||
end
|
||||
|
||||
# Compiles the given scss and output the css as a string.
|
||||
|
Loading…
Reference in New Issue
Block a user