Skip to content

$sprite-inline: true; and generated_images_dir != images_dir #1229

Open
@rdehouss

Description

@rdehouss

Dears,

When you use $sprite-inline: true; the sprite will be generated in the generated_images_dir.
But, in sass_extensions/functions/sprites.rb, in the function inline_sprite, inline_image(sprite_path(map)) will search for the image in your project's images directory.
But sprite_path(map) does not give the path relatively to the project's image directory. It gives it compared to generated_images_dir.

Proposal:
inline_image accept a full path (to not force looking in images_path as done via "File.join(Compass.configuration.images_path, path)"
and make sprite_path returning the map.filename in place of map.name_and_hash
OR
make sprite_path returning a path relative to the project's image directory

Thanks for your great job!

Raphaël

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions