FIX: Duplicated file.
This commit is contained in:
parent
256d7a00e9
commit
21df320f71
|
@ -1,16 +0,0 @@
|
||||||
# sass-rails expects an actual file to exists when calling `@import`. However,
|
|
||||||
# we don't actually create the files for our special imports but rather inject
|
|
||||||
# them dynamically.
|
|
||||||
module Discourse
|
|
||||||
module Sprockets
|
|
||||||
module Resolve
|
|
||||||
def resolve(path, options = {})
|
|
||||||
return [path, []] if DiscourseSassImporter.special_imports.has_key?(File.basename(path, '.scss'))
|
|
||||||
super
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Call `prepend` directly once we drop support for Ruby 2.0.0.
|
|
||||||
Sprockets::Base.send(:prepend, Discourse::Sprockets::Resolve)
|
|
Loading…
Reference in New Issue