grunt-jsio

0.2.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    2
  • 0.2.0rc0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i grunt-jsio

Weekly Downloads

2

Version

0.2.0

License

none

Last publish

Collaborators

  • alanshaw