Read assets in binary mode for the windows users.
This commit is contained in:
parent
9a81fa560e
commit
b6b0723788
@ -46,7 +46,7 @@ private
|
||||
|
||||
def data(real_path)
|
||||
if File.readable?(real_path)
|
||||
[File.read(real_path)].pack('m').gsub("\n","")
|
||||
[File.open(real_path, "rb") {|io| io.read}].pack('m').gsub("\n","")
|
||||
else
|
||||
raise Compass::Error, "File not found or cannot be read: #{real_path}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user