Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Grunt task to create JSIO resources file
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
tasks
test Initial commit - JSIO grunt task and tests
.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

Something went wrong with that request. Please try again.