grunt-jsio
v0.2.0
Published
Grunt task to create JSIO resources file(s).
Downloads
7
Readme
grunt-jsio
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 grunt.js gruntfile with: npm install grunt-jsio
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-jsio');
Next configure the JSIO task in your grunt.js
gruntfile:
jsio: {
dist: {
src: ['path/to/images/*'],
dest: 'dist/js/jsio-resources.js'
}
}
Run the task by invoking grunt jsio