mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: Duplicated file.
This commit is contained in:
@@ -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)
|
|
||||||
Reference in New Issue
Block a user