Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    grunt-gluepublic

    grunt-glue

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

    Getting Started

    Install glue. See http://glue.readthedocs.org/en/latest/installation.html.

    Install this grunt plugin next to your project's Gruntfile with: npm install grunt-glue

    Add this line to your project's Gruntfile:

    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'
            }
        }
        // ...
    });
    

    See the glue documentation for further configuration options: http://glue.readthedocs.org/en/latest/options.html.

    License

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

    Keywords

    none

    install

    npm i grunt-glue

    Downloadsweekly downloads

    11

    version

    0.1.1

    license

    none

    repository

    githubbitbucket

    last publish

    collaborators

    • avatar