An zero config example app for the mimosa-sprite module.
git clone https://github.com/dbashford/MimosaSpriteExample
mimosa watch -s
- Navigate to http://localhost:3000
mimosa sprite inside the project will regenerate the sprites.
A sample config sits inside the project that would allow you to update the layout of the sprite. This is one example of some config that can be provided. For all of the config options, see the node-sprite-generator page.
- Images in
images/sprite/commonare placed inside each sprite. In this case its the Mimosa website logo.
- Each folder inside
images/spritethat isn't the
commonfolder results in a new sprite image and Stylus file. (This works with plain CSS with some config updates.)
- Resulting sprites land inside the
imagesdirectory so that the sprite directory can be ignored from Mimosa processing via the mimosa-config.