Skip to content
Eugene Lazutkin edited this page Dec 9, 2013 · 25 revisions

Welcome to the grunt-tight-sprite wiki!

Following documentation is available:

All options are documented with multiple examples:

  • options.absolute -- indicates to use an absolute path of a generated sprite image in CSS. Default: false.
  • options.background -- specifies a color to be used as a background. Default: transparent.
  • options.classPrefix -- prefix for generated CSS class names. Default: 'sprite_'.
  • options.cssDest -- file name for a generated CSS file. Default: the same as dest, but with '.css' extension.
  • options.includeExt -- include image file's extension in a generated CSS class name. Default: false.
  • options.jpeg -- object, when specified it generates JPEG, or PNG when null. Default: null (PNG).
  • options.silent -- suppress all informational output to console. Default: false.
  • options.template -- string template to generate individual entries corresponding to original source images in a sprite's CSS file.
  • options.templateFile -- alternative way to specify a template as an external file. Default: none.

If you have any questions, do not hesitate to email me. You can open issues for found bugs or enhancement ideas in Issues.

Happy sprite hunting!

Clone this wiki locally