Grunt task to create JSIO resources file
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
tasks
test
.gitignore
.npmignore
LICENCE-MIT
README.md
gruntfile.js
package.json

README.md

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