Specify what to use plugins for. Defaults to [require('imagemin-pngquant')({quality: "60-70",speed: 1})]

imageDirCSS

Relative URL (background-image) which is replaced in position in your CSS. Defaults to ../images/

imageDirSave

The path where to save the sprites relative to the root of the script. Defaults to public/images/

searchPrefix

If you want to use a different prefix, then this option is for you.
Defaults to spritus

gulpfile.js

// ...

postcss([

spritus({

searchPrefix:"myprefix"

})

])

// ...

Now you can now use

.icon{

background-image:myprefix-url(...);

background-size:myprefix-size(...);

myprefix:phw(...);

}

algorithm

Images can be laid out in different fashions depending on the algorithm. We use layout to provide you as many options as possible. . Defaults to top-down.At the time of writing, here are your options for algorithm: