Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
AssetGraph plugin for creating sprites from background images
JavaScript CSS HTML

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.rst
package.json

README.rst

AssetGraph-sprite

A plugin (or "transform") for AssetGraph that optimizes CSS background images by creating sprite images. The spriting is guided by a set of custom CSS properties with a -one-sprite prefix.

(More docs will follow!)

Installation

AssetGraph-sprite uses node-canvas for creating the sprite images themselves, which is not a pure-node module and requires the Cairo development sources version 1.10 or later (libcairo2-dev on Ubuntu & friends) and compilation of some glue C++-code to work.

When Cairo is in place, you can proceed to install AssetGraph-sprite:

$ npm install assetgraph-sprite

License

AssetGraph-sprite is licensed under a standard 3-clause BSD license -- see the LICENSE-file for details.

Something went wrong with that request. Please try again.