broccoli-spritesmith

0.0.12 • Public • Published

broccoli-spritesmith

this is spritesmit for broccoli plugins

Usage

Example

    var BroccoliSpritesmith = require('broccoli-spritesmith'),
    var spriteTree = BroccoliSpritesmith('test/images');
 

API

BroccoliSpritesmith(tree, options)

Example options object:

{
    output: 'all',
    outputPath: 'assets',
    spriteName: 'sprites',
    ext: 'png',
 
    // sprite engine arguments   
    engine: 'auto', // e.g. phantomjs, canvas, ...
    algorithm: 'binary-tree',
    padding: 5
}

output defaults is 'all', can be set 'scss', 'image', 'less', but now only support 'scss' , 'image'

engine, algorithm, padding are spritesmith options

License

MIT © Hysios Hu

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.123latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.123
0.0.101
0.0.90
0.0.80
0.0.70
0.0.60
0.0.53
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i broccoli-spritesmith

Weekly Downloads

7

Version

0.0.12

License

MIT

Last publish

Collaborators

  • hysios