Skip to content

can't generate sprites because of folder name starting with a number #1

@doppelreim

Description

@doppelreim

Hi there,

I would like to use compass to generate a sprite map of the flags using this code:

@import "compass/utilities/sprites";
@import "flags/24x24/*.png";
@include all-24x24-sprites;

This fails in the second line with:
Invalid CSS after "$": expected identifier, was "24x24-sprite-ba..."
I think this is because the folder containing the icons starts with a number, which is not allowed in Sass, apparently.
Renaming the folder "24x24" to something starting with a character fixes the issue.

Would you be willing to rename your folders? I could create a pull request, if necessary.
Or is there maybe another way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions