2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

Example config with spritesmith options. #19

Closed cikoriicabachkov closed 9 years ago

cikoriicabachkov commented 9 years ago

Hello! How can I set spritesmith options? I try this way, but nothing happens.

var opts    = {
    stylesheetPath  : './dist',
    spritePath      : './dist/images/sprite.png',
    outputDimensions: true,
    spritesmith: {
        padding: 10
    }
};
cikoriicabachkov commented 9 years ago

Oops! The right way is:

var opts    = {
    stylesheetPath  : './dist',
    spritePath      : './dist/images/sprite.png',
    outputDimensions: true,
    padding: 10
};