mirror of
https://github.com/twbs/bootstrap-sass.git
synced 2022-11-09 12:27:02 -05:00
more robust compass url generation handling. see #480
This commit is contained in:
parent
2d18c2ad0e
commit
1f77da0b28
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ module Sass::Script::Functions
|
||||||
url = if Bootstrap.asset_pipeline? && (context = sprockets_context)
|
url = if Bootstrap.asset_pipeline? && (context = sprockets_context)
|
||||||
context.send(:"#{type}_path", source.value)
|
context.send(:"#{type}_path", source.value)
|
||||||
elsif Bootstrap.compass?
|
elsif Bootstrap.compass?
|
||||||
send(:"#{type}_url", source, Sass::Script::Bool.new(true)).value
|
send(:"#{type}_url", source, Sass::Script::Bool.new(true)).value.sub /url\((.*)\)$/, '\1'
|
||||||
end
|
end
|
||||||
|
|
||||||
# sass-only
|
# sass-only
|
||||||
|
@ -46,4 +46,4 @@ module Sass::Script::Functions
|
||||||
importer.context
|
importer.context
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue