mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: make sure rails sprockets sass functions are included when compiling sass
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user