aslansky / css-sprite

css sprite generator
MIT License
733 stars 55 forks source link

Output SASS and sprite to different directories config issues #69

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi,

This is probably a configuration issue on my part but I am trying to generate a sprite and put in it my img dir and place the sass file in my sass dir.

I have tried a multitude of options but I cannot seem to get the correct set. Can you offer any guidance on how to use the lib?

I am using Grunt.

aslansky commented 9 years ago

Could you give me the part of the grunfile you are using? Than I can have a look.

ghost commented 9 years ago
{
    "options": {
        "processor": "sass",
        "orientation": "vertical",
        "margin": 4,
    "cssPath": "../img/"
    },
    "dev": {
        "options": {        
            "style": "src/sass/sprite.scss"
        },
        "src": "src/img/*.png",
        "dest": "src/img/sprite"
    }
}
aslansky commented 9 years ago

Thanks, I will look into it.