mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 17:10:54 -04:00
FIX: make sure rails sprockets sass functions are included when compiling sass
This commit is contained in:
parent
43496958fe
commit
f9e80e1eb2
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ class DiscourseSassCompiler
|
||||||
def initialize(scss, target)
|
def initialize(scss, target)
|
||||||
@scss = scss
|
@scss = scss
|
||||||
@target = target
|
@target = target
|
||||||
|
|
||||||
|
unless Sass::Script::Functions < Sprockets::SassFunctions
|
||||||
|
Sass::Script::Functions.send :include, Sprockets::SassFunctions
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Compiles the given scss and output the css as a string.
|
# Compiles the given scss and output the css as a string.
|
||||||
|
|
Loading…
Reference in a new issue