grunt-jsio

Grunt task to create JSIO resources file(s).

npm install grunt-jsio
12 downloads in the last month

grunt-jsio Dependency Status

Grunt task to create JSIO resources file(s).

JSIO is a tiny library that allows you to make fewer requests to your server by packaging all your site image data in a JavaScript file in data uri format.

Getting Started

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

Note: as of version 0.2.0 this plugin requires grunt 0.4. Install version 0.1.0 for grunt 0.3 support.

Then add this line to your project's Gruntfile.js:

grunt.loadNpmTasks('grunt-jsio');

Next configure the JSIO task in your Gruntfile.js:

  jsio: {
    dist: {
        src: ['path/to/images/*'],
        dest: 'dist/js/jsio-resources.js'
    }
  }

Run the task by invoking grunt jsio

npm loves you