css-sprite icon indicating copy to clipboard operation
css-sprite copied to clipboard

Output SASS and sprite to different directories config issues

Open ghost opened this issue 9 years ago • 3 comments

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.

ghost avatar May 15 '15 16:05 ghost

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

aslansky avatar May 15 '15 18:05 aslansky

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

ghost avatar May 19 '15 11:05 ghost

Thanks, I will look into it.

aslansky avatar May 19 '15 11:05 aslansky