Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 970 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 970 Bytes

sprites-cli

A command-line interface for css sprites using gulp.spritesmith

Installation

  $ [sudo] npm install sprites-cli -g

Usage

Example

sprite images in the current directory

  $ sprt

sprite images in the current directory and use rem as unit to generate css.

  $ sprt -r

sprite pngs in src/icons

  $ sprt -f 'src/icons/*.png' -r -a 'top-down' -d './dist'

Options

  $ sprt -h

  Usage: sprt [options]

  A command-line interface for css sprites

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -r, --rem                using rem as unit to generate css
    -a, --algorithm [value]  images layout: top-down left-right diagonal alt-diagonal binary-tree
    -f, --files [value]      images, using minimatch rules
    -d, --dist [value]       dest dir