Source

grunt-glue / README.md

Full commit

grunt-glue

A grunt plugin for the glue spriting tool(https://github.com/jorgebastida/glue).

Getting Started

grunt.loadNpmTasks('grunt-glue');
  • Configure the glue task for each of your sprite targets, like
grunt.initConfig({
  // ...
  glue: {
    icons: {
      src: 'assets/icons',
      dest: 'assets/icons_built'
    },
    buttons: {
      src: 'assets/buttons',
      options: '--css=assets/built --img=test/assets/built --less --namespace=btn --optipng'
    }
  }

  // ...
});

License

Copyright (c) 2012 Carsten Kraus Licensed under the MIT license.