- Generate multiple .png spritesheets from directories
- Generate a css preprocessor file containing abstract class and mixins for each sprite (only stylus for now, but you can create your own use a custom processor function).
- Generate spritesheet and preprocessor tools for retina and other resolutions.
inputPath : path.join(__dirname, 'sources'),
outputPath : path.join(__dirname, 'generated-spritesheets'),
}); gen.run(); ``` This basic usage example will take all the folders in the inputPath, and create one spritesheet for each, from all .png files in it. Note that inputPath can be a glob or an array of glob. The spritesheets (with the @2x version) and the preprocessor files are saved in outputPath See examples to see the kind of files which are generated. ```
processor : 'stylus'