MimosaSpriteExample
An zero config example app for the mimosa-sprite module.
Directions
git clone https://github.com/dbashford/MimosaSpriteExample
cd MimosaSpriteExample
mimosa watch -s
- Navigate to http://localhost:3000
Executing 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.
Take aways
- Images in
images/sprite/common
are placed inside each sprite. In this case its the Mimosa website logo. - Each folder inside
images/sprite
that isn't thecommon
folder results in a new sprite image and Stylus file. (This works with plain CSS with some config updates.) - Resulting sprites land inside the
images
directory so that the sprite directory can be ignored from Mimosa processing via the mimosa-config.