Skip to content

sprite-path() does not honor the generated_images_dir path. #1077

Open
@jannisg

Description

@jannisg

I've noticed that when setting the generated_images_dir in the config.rb that the sprite-path() function will still use the images_dir as the basis for the resulting path.

Example:

Inside my config.rb:

images_dir = "/public/assets/images"
generated_images_dir = "/public/assets/images/sprites"

Inside my application.scss:

$my-sprites: sprite-map('my-sprites/*.png);

@debug( sprite-path( $my-sprites ) );

// returns
DEBUG: my-sprites-xxxxxxx.png

Output of the debug() is my-sprites.png when it should've been sprites/my-sprites.png.

Is this a bug or am I missing the point on what the sprite-path should be used for?

Thanks for taking a look.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions