sprites-preprocessor

1.0.0 • Public • Published

sprites-preprocessor Build Status

create sprite images from css files

Install

$ npm install --save-dev sprites-preprocessor

Gulp Usage

var sprites = require('sprites-preprocessor');

var options = {
  name: 'sprite.png',
  path: 'images/sprites',
  prefix: '/images/sprites/'
};

sprites(options, 'body { background: url(/images/sprite/file.png); }', function(err, css, image) {
});

API

sprites(options)

Options

name

Type: String Default: sprite.png

Name of the output sprite file.

path

Type: String Default: images/sprites

Path to the source image files

prefix

Type: String Default: /images/sprites/

Css prefix in image url to know what images transform into sprites

License

MIT license

/sprites-preprocessor/

    Package Sidebar

    Install

    npm i sprites-preprocessor

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jansedivy